case class RequestT[U[_], T, +S](method: U[Method], uri: U[Uri], body: RequestBody[S], headers: Seq[Header], response: ResponseAs[T, S], options: RequestOptions, tags: Map[String, Any]) extends RequestTExtensions[U, T, S] with Product with Serializable

U

Specifies if the method & uri are specified. By default can be either: * Empty, which is a type constructor which always resolves to None. This type of request is aliased to PartialRequest: there's no method and uri specified, and the request cannot be sent. * Id, which is an identity type constructor. This type of request is aliased to Request: the method and uri are specified, and the request can be sent.

response

What's the target type to which the response body should be read. Needs to be specified upfront so that the response is always consumed and hence there are no requirements on client code to consume it. An exception to this are streaming responses, which need to fully consumed by the client if such a response type is requested.

tags

Request-specific tags which can be used by backends for logging, metrics, etc. Not used by default.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestT
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RequestTExtensions
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RequestT(method: U[Method], uri: U[Uri], body: RequestBody[S], headers: Seq[Header], response: ResponseAs[T, S], options: RequestOptions, tags: Map[String, Any])

    response

    What's the target type to which the response body should be read. Needs to be specified upfront so that the response is always consumed and hence there are no requirements on client code to consume it. An exception to this are streaming responses, which need to fully consumed by the client if such a response type is requested.

    tags

    Request-specific tags which can be used by backends for logging, metrics, etc. Not used by default.

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. def acceptEncoding(encoding: String): RequestT[U, T, S]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def auth: SpecifyAuthScheme[U, T, S]
  7. def body(fs: Seq[(String, String)], encoding: String): RequestT[U, T, S]

    Encodes the given parameters as form data.

    Encodes the given parameters as form data. If content type is not yet specified, will be set to application/x-www-form-urlencoded.

    If content length is not yet specified, will be set to the length of the number of bytes in the url-encoded parameter string.

  8. def body(fs: (String, String)*): RequestT[U, T, S]

    Encodes the given parameters as form data using utf-8.

    Encodes the given parameters as form data using utf-8. If content type is not yet specified, will be set to application/x-www-form-urlencoded.

    If content length is not yet specified, will be set to the length of the number of bytes in the url-encoded parameter string.

  9. def body(fs: Map[String, String], encoding: String): RequestT[U, T, S]

    Encodes the given parameters as form data.

    Encodes the given parameters as form data. If content type is not yet specified, will be set to application/x-www-form-urlencoded.

    If content length is not yet specified, will be set to the length of the number of bytes in the url-encoded parameter string.

  10. def body(fs: Map[String, String]): RequestT[U, T, S]

    Encodes the given parameters as form data using utf-8.

    Encodes the given parameters as form data using utf-8. If content type is not yet specified, will be set to application/x-www-form-urlencoded.

    If content length is not yet specified, will be set to the length of the number of bytes in the url-encoded parameter string.

  11. def body(b: InputStream): RequestT[U, T, S]

    If content type is not yet specified, will be set to application/octet-stream.

  12. def body(b: ByteBuffer): RequestT[U, T, S]

    If content type is not yet specified, will be set to application/octet-stream.

  13. def body(b: Array[Byte]): RequestT[U, T, S]

    If content type is not yet specified, will be set to application/octet-stream.

    If content type is not yet specified, will be set to application/octet-stream.

    If content length is not yet specified, will be set to the length of the given array.

  14. def body(b: String, encoding: String): RequestT[U, T, S]

    If content type is not yet specified, will be set to text/plain with the given encoding.

    If content type is not yet specified, will be set to text/plain with the given encoding.

    If content length is not yet specified, will be set to the number of bytes in the string using the given encoding.

  15. def body(b: String): RequestT[U, T, S]

    Uses the utf-8 encoding.

    Uses the utf-8 encoding.

    If content type is not yet specified, will be set to text/plain with utf-8 encoding.

    If content length is not yet specified, will be set to the number of bytes in the string using the utf-8 encoding.

  16. def body[B](b: B)(implicit arg0: BodySerializer[B]): RequestT[U, T, S]

    If content type is not yet specified, will be set to application/octet-stream.

    If content type is not yet specified, will be set to application/octet-stream.

    Definition Classes
    RequestTExtensions
  17. def body(file: File): RequestT[U, T, S]

    If content type is not yet specified, will be set to application/octet-stream.

    If content type is not yet specified, will be set to application/octet-stream.

    If content length is not yet specified, will be set to the length of the given file.

    Definition Classes
    RequestTExtensions
  18. val body: RequestBody[S]
  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  20. def contentLength(l: Long): RequestT[U, T, S]
  21. def contentType(ct: String, encoding: String): RequestT[U, T, S]
  22. def contentType(mt: MediaType): RequestT[U, T, S]
  23. def contentType(ct: String): RequestT[U, T, S]
  24. def cookie(n: String, v: String): RequestT[U, T, S]
  25. def cookie(nv: (String, String)): RequestT[U, T, S]
  26. def cookies(nvs: (String, String)*): RequestT[U, T, S]
  27. def cookies(cs: Iterable[CookieWithMeta]): RequestT[U, T, S]
  28. def cookies(r: Response[_]): RequestT[U, T, S]
  29. def delete(uri: Uri): Request[T, S]
  30. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def followRedirects(fr: Boolean): RequestT[U, T, S]
  32. def get(uri: Uri): Request[T, S]
  33. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  34. def head(uri: Uri): Request[T, S]
  35. def header(k: String, v: String): RequestT[U, T, S]
  36. def header(k: String, v: String, replaceExisting: Boolean): RequestT[U, T, S]

    Adds the given header to the end of the headers sequence.

    Adds the given header to the end of the headers sequence.

    replaceExisting

    If there's already a header with the same name, should it be dropped?

  37. def header(h: Header, replaceExisting: Boolean = false): RequestT[U, T, S]

    Adds the given header to the end of the headers sequence.

    Adds the given header to the end of the headers sequence.

    replaceExisting

    If there's already a header with the same name, should it be dropped?

  38. def headers(hs: Header*): RequestT[U, T, S]
  39. def headers(hs: Map[String, String]): RequestT[U, T, S]
  40. val headers: Seq[Header]
  41. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  42. def mapResponse[T2](f: (T) ⇒ T2): RequestT[U, T2, S]
  43. def maxRedirects(n: Int): RequestT[U, T, S]
  44. def method(method: Method, uri: Uri): Request[T, S]
  45. val method: U[Method]
  46. def multipartBody(p1: Part[BasicRequestBody], ps: Part[BasicRequestBody]*): RequestT[U, T, S]
  47. def multipartBody(ps: Seq[Part[BasicRequestBody]]): RequestT[U, T, S]
  48. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  49. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  50. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  51. def openWebsocket[F[_], WS_HANDLER[_], WS_RESULT](handler: WS_HANDLER[WS_RESULT])(implicit backend: SttpBackend[F, S, WS_HANDLER], isIdInRequest: IsIdInRequest[U]): F[WebSocketResponse[WS_RESULT]]
  52. def openWebsocketF[F[_], WS_HANDLER[_], WS_RESULT](handler: F[WS_HANDLER[WS_RESULT]])(implicit backend: SttpBackend[F, S, WS_HANDLER], isIdInRequest: IsIdInRequest[U]): F[WebSocketResponse[WS_RESULT]]
  53. def options(uri: Uri): Request[T, S]
  54. val options: RequestOptions
  55. def patch(uri: Uri): Request[T, S]
  56. def post(uri: Uri): Request[T, S]
  57. def proxyAuth: SpecifyAuthScheme[U, T, S]
  58. def put(uri: Uri): Request[T, S]
  59. def readTimeout(t: Duration): RequestT[U, T, S]
  60. def redirectToGet(r: Boolean): RequestT[U, T, S]

    When a POST or PUT request is redirected, should the redirect be a POST/PUT as well (with the original body), or should the request be converted to a GET without a body.

    When a POST or PUT request is redirected, should the redirect be a POST/PUT as well (with the original body), or should the request be converted to a GET without a body.

    Note that this only affects 301 and 302 redirects. 303 redirects are always converted, while 307 and 308 redirects always keep the same method.

    See https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections for details.

  61. def response[T2, S2 >: S](ra: ResponseAs[T2, S2]): RequestT[U, T2, S2]

    Specifies the target type to which the response body should be read.

    Specifies the target type to which the response body should be read. Note that this replaces any previous specifications, which also includes any previous mapResponse invocations.

  62. val response: ResponseAs[T, S]
  63. def send[F[_]]()(implicit backend: SttpBackend[F, S, NothingT], isIdInRequest: IsIdInRequest[U]): F[Response[T]]
  64. def streamBody[S2 >: S](b: S2): RequestT[U, T, S2]
  65. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  66. def tag(k: String): Option[Any]
  67. def tag(k: String, v: Any): RequestT[U, T, S]
  68. val tags: Map[String, Any]
  69. def toCurl(implicit isIdInRequest: IsIdInRequest[U]): String
  70. val uri: U[Uri]
  71. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  73. 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
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RequestTExtensions[U, T, S]

Inherited from AnyRef

Inherited from Any

Ungrouped