Packages

  • package root
    Definition Classes
    root
  • package sttp
    Definition Classes
    root
  • package model

    Most model classes contain both serialisation & parsing functionality, following these conventions:

    Most model classes contain both serialisation & parsing functionality, following these conventions:

    • .toString returns a representation of the model class in a format as in an HTTP request/response. For example, for an uri this will be http://..., for a header [name]: [value], etc.
    • [SthCompanionObject].parse(serialized: String): Either[String, Sth]: returns an error message or an instance of the model class
    • [SthCompanionObject].unsafeParse(serialized: String): Sth: returns an instance of the model class or in case of an error, *throws an exception*.
    • [SthCompanionObject].unsafeApply(values): creates an instance of the model class; validates the input values and in case of an error, *throws an exception*. An error could be e.g. that the input values contain characters outside of the allowed range
    • [SthCompanionObject].safeApply(...): Either[String, Sth]: same as above, but doesn't throw exceptions. Instead, returns an error message or the model class instance
    • [SthCompanionObject].apply(...): Sth: creates the model type, without validation, and without throwing exceptions
    Definition Classes
    sttp
  • package headers
    Definition Classes
    model
  • package internal
    Definition Classes
    model
  • package sse
    Definition Classes
    model
  • ContentRangeUnits
  • ContentTypeRange
  • Encodings
  • HasHeaders
  • Header
  • HeaderNames
  • Headers
  • MediaType
  • MediaTypes
  • Method
  • Methods
  • Part
  • QueryParams
  • RequestMetadata
  • ResponseMetadata
  • StatusCode
  • StatusCodes
  • Uri
  • UriInterpolator
t

sttp.model

StatusCodes

trait StatusCodes extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StatusCodes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val Accepted: StatusCode
  5. val AlreadyReported: StatusCode
  6. val BadGateway: StatusCode
  7. val BadRequest: StatusCode
  8. val Conflict: StatusCode
  9. val Continue: StatusCode
  10. val Created: StatusCode
  11. val EarlyHints: StatusCode
  12. val ExpectationFailed: StatusCode
  13. val FailedDependency: StatusCode
  14. val Forbidden: StatusCode
  15. val Found: StatusCode
  16. val GatewayTimeout: StatusCode
  17. val Gone: StatusCode
  18. val HttpVersionNotSupported: StatusCode
  19. val ImUsed: StatusCode
  20. val InsufficientStorage: StatusCode
  21. val InternalServerError: StatusCode
  22. val LengthRequired: StatusCode
  23. val Locked: StatusCode
  24. val LoopDetected: StatusCode
  25. val MethodNotAllowed: StatusCode
  26. val MisdirectedRequest: StatusCode
  27. val MovedPermanently: StatusCode
  28. val MultiStatus: StatusCode
  29. val MultipleChoices: StatusCode
  30. val NetworkAuthenticationRequired: StatusCode
  31. val NoContent: StatusCode
  32. val NonAuthoritativeInformation: StatusCode
  33. val NotAcceptable: StatusCode
  34. val NotExtended: StatusCode
  35. val NotFound: StatusCode
  36. val NotImplemented: StatusCode
  37. val NotModified: StatusCode
  38. val Ok: StatusCode
  39. val PartialContent: StatusCode
  40. val PayloadTooLarge: StatusCode
  41. val PaymentRequired: StatusCode
  42. val PermanentRedirect: StatusCode
  43. val PreconditionFailed: StatusCode
  44. val PreconditionRequired: StatusCode
  45. val Processing: StatusCode
  46. val ProxyAuthenticationRequired: StatusCode
  47. val RangeNotSatisfiable: StatusCode
  48. val RequestHeaderFieldsTooLarge: StatusCode
  49. val RequestTimeout: StatusCode
  50. val ResetContent: StatusCode
  51. val SeeOther: StatusCode
  52. val ServiceUnavailable: StatusCode
  53. val SwitchingProtocols: StatusCode
  54. val TemporaryRedirect: StatusCode
  55. val TooManyRequests: StatusCode
  56. val Unauthorized: StatusCode
  57. val UnavailableForLegalReasons: StatusCode
  58. val UnprocessableEntity: StatusCode
  59. val UnsupportedMediaType: StatusCode
  60. val UpgradeRequired: StatusCode
  61. val UriTooLong: StatusCode
  62. val UseProxy: StatusCode
  63. val VariantAlsoNegotiates: StatusCode
  64. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  65. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  66. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  68. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  69. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  70. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  71. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  72. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  73. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  74. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  75. def toString(): String
    Definition Classes
    AnyRef → Any
  76. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  78. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped