RequestHandlerSyntax

zio.http.Handler.RequestHandlerSyntax
final implicit class RequestHandlerSyntax[-R, +Err](val self: RequestHandler[R, Err]) extends HeaderModifier[RequestHandler[R, Err]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def method(method: Method): RequestHandler[R, Err]

Overwrites the method in the incoming request

Overwrites the method in the incoming request

Attributes

def patch(patch: Patch)(implicit trace: Trace): RequestHandler[R, Err]

Patches the response produced by the handler

Patches the response produced by the handler

Attributes

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

Overwrites the path in the incoming request

Overwrites the path in the incoming request

Attributes

def status(status: Status)(implicit trace: Trace): RequestHandler[R, Err]

Sets the status in the response produced by the handler

Sets the status in the response produced by the handler

Attributes

override 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.

Attributes

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

Overwrites the url in the incoming request

Overwrites the url in the incoming request

Attributes

Inherited methods

final def addHeader(name: CharSequence, value: CharSequence): A

Attributes

Inherited from:
HeaderModifier
final def addHeader(header: Header): A

Attributes

Inherited from:
HeaderModifier
final def addHeaders(headers: Headers): A

Attributes

Inherited from:
HeaderModifier
final def removeHeader(name: String): A

Attributes

Inherited from:
HeaderModifier
final def removeHeader(headerType: HeaderType): A

Attributes

Inherited from:
HeaderModifier
final def removeHeaders(headers: Set[String]): A

Attributes

Inherited from:
HeaderModifier
final def setHeaders(headers: Headers): A

Attributes

Inherited from:
HeaderModifier

Concrete fields

val self: RequestHandler[R, Err]