c

zio.http.Handler

RequestHandlerSyntax

implicit final class RequestHandlerSyntax[-R, +Err] extends HeaderModifier[RequestHandler[R, Err]]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestHandlerSyntax
  2. HeaderModifier
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RequestHandlerSyntax(self: RequestHandler[R, Err])

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. final def addHeader[T](value: T)(implicit schema: Schema[T]): RequestHandler[R, Err]

    Adds headers based on the given value.

    Adds headers based on the given value. The type of the value must have a schema and be a case class and all fields will be added as headers. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. The header names are the field names.

    Definition Classes
    HeaderModifier
  5. final def addHeader[T](name: String, value: T)(implicit schema: Schema[T]): RequestHandler[R, Err]

    Adds a header / headers with the specified name and based on the given value.

    Adds a header / headers with the specified name and based on the given value. The value type must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.

    Definition Classes
    HeaderModifier
  6. def addHeader(name: CharSequence, value: CharSequence): RequestHandler[R, Err]
    Attributes
    protected
    Definition Classes
    HeaderModifier
  7. final def addHeader(header: Header): RequestHandler[R, Err]
    Definition Classes
    HeaderModifier
  8. final def addHeaders(headers: Iterable[(CharSequence, CharSequence)]): RequestHandler[R, Err]
    Definition Classes
    HeaderModifier
  9. final def addHeaders(headers: Headers): RequestHandler[R, Err]
    Definition Classes
    HeaderModifier
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def method(method: Method): RequestHandler[R, Err]

    Overwrites the method in the incoming request

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. def patch(patch: Patch)(implicit trace: Trace): RequestHandler[R, Err]

    Patches the response produced by the handler

  22. def path(path: Path): RequestHandler[R, Err]

    Overwrites the path in the incoming request

  23. final def removeHeader(name: String): RequestHandler[R, Err]
    Definition Classes
    HeaderModifier
  24. final def removeHeader(headerType: HeaderType): RequestHandler[R, Err]
    Definition Classes
    HeaderModifier
  25. final def removeHeaders(headers: Set[String]): RequestHandler[R, Err]
    Definition Classes
    HeaderModifier
  26. val self: RequestHandler[R, Err]
  27. final def setHeaders(headers: Headers): RequestHandler[R, Err]
    Definition Classes
    HeaderModifier
  28. def status(status: Status)(implicit trace: Trace): RequestHandler[R, Err]

    Sets the status in the response produced by the handler

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def updateHeaders(update: (Headers) => Headers)(implicit trace: Trace): RequestHandler[R, Err]

    Updates the current Headers with new one, using the provided update function passed.

    Updates the current Headers with new one, using the provided update function passed.

    Definition Classes
    RequestHandlerSyntaxHeaderModifier
  32. def url(url: URL): RequestHandler[R, Err]

    Overwrites the url in the incoming request

  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. 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

    (Since version 9)

Inherited from HeaderModifier[RequestHandler[R, Err]]

Inherited from AnyRef

Inherited from Any

Ungrouped