final case class Request(version: Version = Version.Default, method: Method = Method.ANY, url: URL = URL.empty, headers: Headers = Headers.empty, body: Body = Body.empty, remoteAddress: Option[InetAddress] = None) extends HeaderOps[Request] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Request
  2. Serializable
  3. Product
  4. Equals
  5. HeaderOps
  6. HeaderChecks
  7. HeaderGetters
  8. HeaderModifier
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Request(version: Version = Version.Default, method: Method = Method.ANY, url: URL = URL.empty, headers: Headers = Headers.empty, body: Body = Body.empty, remoteAddress: Option[InetAddress] = None)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(that: Request): Request

    A right-biased way of combining two requests.

    A right-biased way of combining two requests. Most information will be merged, but in cases where this does not make sense (e.g. two non-empty bodies), the information from the right request will be used.

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def addHeader(name: CharSequence, value: CharSequence): Request
    Definition Classes
    HeaderModifier
  6. final def addHeader(header: Header): Request
    Definition Classes
    HeaderModifier
  7. final def addHeaders(headers: Headers): Request
    Definition Classes
    HeaderModifier
  8. def addLeadingSlash: Request
  9. def addTrailingSlash: Request

    Add trailing slash to the path.

  10. lazy val allHeaders: Headers

    Custom headers and headers required by the used Body

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. val body: Body
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  14. def collect(implicit trace: Trace): ZIO[Any, Throwable, Request]

    Collects the potentially streaming body of the request into a single chunk.

  15. def cookie(name: String): Option[Cookie]

    Returns the cookie with the given name if it exists.

  16. def cookieWithOrFail[R, E, A](name: String)(missingCookieError: E)(f: (Cookie) => ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A]

    Uses the cookie with the given name if it exists and runs f with the cookie afterwards.

    Uses the cookie with the given name if it exists and runs f with the cookie afterwards.

    Also, you can set a custom failure value from a missing cookie with E.

  17. def cookieWithZIO[R, A](name: String)(f: (Cookie) => ZIO[R, Throwable, A])(implicit trace: Trace): ZIO[R, Throwable, A]

    Uses the cookie with the given name if it exists and runs f with the cookie afterwards.

  18. def cookies: Chunk[Cookie]

    Returns all cookies from the request.

  19. def dropLeadingSlash: Request
  20. def dropTrailingSlash: Request

    Drops trailing slash from the path.

  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def flashMessage: Option[String]
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  24. final def hasContentType(value: CharSequence): Boolean
    Definition Classes
    HeaderChecks
  25. final def hasFormMultipartContentType: Boolean
    Definition Classes
    HeaderChecks
  26. final def hasFormUrlencodedContentType: Boolean
    Definition Classes
    HeaderChecks
  27. final def hasHeader(header: Header): Boolean
    Definition Classes
    HeaderChecks
  28. final def hasHeader(headerType: HeaderType): Boolean
    Definition Classes
    HeaderChecks
  29. final def hasHeader(name: CharSequence): Boolean
    Definition Classes
    HeaderChecks
  30. final def hasJsonContentType: Boolean
    Definition Classes
    HeaderChecks
  31. final def hasMediaType(mediaType: MediaType): Boolean
    Definition Classes
    HeaderChecks
  32. final def hasTextPlainContentType: Boolean
    Definition Classes
    HeaderChecks
  33. final def hasXhtmlXmlContentType: Boolean
    Definition Classes
    HeaderChecks
  34. final def hasXmlContentType: Boolean
    Definition Classes
    HeaderChecks
  35. final def header(headerType: HeaderType): Option[HeaderValue]

    Gets a header or returns None if the header was not present or it could not be parsed

    Gets a header or returns None if the header was not present or it could not be parsed

    Definition Classes
    HeaderGetters
  36. final def headerOrFail(headerType: HeaderType): Option[Either[String, HeaderValue]]

    Gets a header.

    Gets a header. If the header is not present, returns None. If the header could not be parsed it returns the parsing error

    Definition Classes
    HeaderGetters
  37. final def headers(headerType: HeaderType): Chunk[HeaderValue]
    Definition Classes
    HeaderGetters
  38. val headers: Headers

    Returns the headers

    Returns the headers

    Definition Classes
    RequestHeaderGetters
  39. def ignoreBody(implicit trace: Trace): ZIO[Any, Throwable, Request]

    Consumes the streaming body fully and then drops it

  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. val method: Method
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  45. def patch(p: Patch): Request
  46. def path(path: Path): Request
  47. def path: Path
  48. def productElementNames: Iterator[String]
    Definition Classes
    Product
  49. final def rawHeader(headerType: HeaderType): Option[String]

    Gets the raw unparsed header value

    Gets the raw unparsed header value

    Definition Classes
    HeaderGetters
  50. final def rawHeader(name: CharSequence): Option[String]

    Gets the raw unparsed header value

    Gets the raw unparsed header value

    Definition Classes
    HeaderGetters
  51. val remoteAddress: Option[InetAddress]
  52. final def removeHeader(name: String): Request
    Definition Classes
    HeaderModifier
  53. final def removeHeader(headerType: HeaderType): Request
    Definition Classes
    HeaderModifier
  54. final def removeHeaders(headers: Set[String]): Request
    Definition Classes
    HeaderModifier
  55. final def setHeaders(headers: Headers): Request
    Definition Classes
    HeaderModifier
  56. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  57. def unnest(prefix: Path): Request

    Unnests the request by the specified prefix.

    Unnests the request by the specified prefix. If the request URL is not nested at the specified path, then this has no effect on the URL.

  58. def updateHeaders(update: (Headers) => Headers)(implicit trace: Trace): Request

    Updates the headers using the provided function

    Updates the headers using the provided function

    Definition Classes
    RequestHeaderModifier
  59. def updateURL(f: (URL) => URL): Request
  60. val url: URL
  61. val version: Version
  62. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  63. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  64. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HeaderOps[Request]

Inherited from HeaderChecks[Request]

Inherited from HeaderGetters

Inherited from HeaderModifier[Request]

Inherited from AnyRef

Inherited from Any

Ungrouped