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

Concise view

Value members

Concrete methods

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

Patches the response produced by the app

Patches the response produced by the app

Attributes

override def updateHeaders(update: Headers => Headers): 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 withMethod(method: Method): RequestHandler[R, Err]

Overwrites the method in the incoming request

Overwrites the method in the incoming request

Attributes

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

Overwrites the path in the incoming request

Overwrites the path in the incoming request

Attributes

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

Sets the status in the response produced by the app

Sets the status in the response produced by the app

Attributes

def withUrl(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
def withHeader(header: Header): A

Attributes

Inherited from:
HeaderModifier

Concrete fields

val self: RequestHandler[R, Err]