HttpAppSyntax

final implicit class HttpAppSyntax[-R, +E](val http: HttpApp[R, E]) extends HeaderModifierZIO[HttpApp[R, E]]
class Object
trait Matchable
class Any

Value members

Concrete methods

def patch(patch: Patch): HttpApp[R, E]

Patches the response produced by the app

Patches the response produced by the app

def setMethod(method: Method): HttpApp[R, E]

Overwrites the method in the incoming request

Overwrites the method in the incoming request

def setPath(path: Path): HttpApp[R, E]

Overwrites the path in the incoming request

Overwrites the path in the incoming request

def setStatus(status: Status): HttpApp[R, E]

Sets the status in the response produced by the app

Sets the status in the response produced by the app

def setUrl(url: URL): HttpApp[R, E]

Overwrites the url in the incoming request

Overwrites the url in the incoming request

override def updateHeaders(update: Headers => Headers)(implicit trace: Trace): HttpApp[R, E]

Updates the response headers using the provided function

Updates the response headers using the provided function

Definition Classes
def whenPathEq(p: Path): HttpApp[R, E]

Applies Http based on the path

Applies Http based on the path

def whenPathEq(p: String): HttpApp[R, E]

Applies Http based on the path as string

Applies Http based on the path as string

Inherited methods

final def addHeader(name: CharSequence, value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def addHeader(header: Header)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def addHeaders(headers: Headers)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def removeHeader(name: String)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def removeHeaders(headers: List[String])(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def setHeaders(headers: Headers)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccept(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAcceptEncoding(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAcceptLanguage(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAcceptPatch(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAcceptRanges(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccessControlAllowCredentials(value: Boolean)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccessControlAllowHeaders(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccessControlAllowMethods(value: Method*)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccessControlAllowOrigin(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccessControlExposeHeaders(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccessControlMaxAge(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccessControlRequestHeaders(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAccessControlRequestMethod(value: Method)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAge(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAllow(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withAuthorization(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withBasicAuthorization(username: String, password: String)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withCacheControl(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withCacheControlMaxAge(value: Duration)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withConnection(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentBase(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentDisposition(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentEncoding(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentLanguage(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentLength(value: Long)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentLocation(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentMd5(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentRange(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentSecurityPolicy(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentTransferEncoding(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withContentType(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withCookie(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withDate(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withDnt(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withEtag(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withExpect(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withExpires(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withFrom(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withHost(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withIfMatch(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withIfModifiedSince(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withIfNoneMatch(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withIfRange(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withIfUnmodifiedSince(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withLastModified(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withLocation(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withMaxForwards(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
def withMediaType(mediaType: MediaType)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withOrigin(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withPragma(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withProxyAuthenticate(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withProxyAuthorization(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withRange(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withReferer(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withRetryAfter(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withSecWebSocketAccept(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withSecWebSocketExtensions(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withSecWebSocketKey(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withSecWebSocketLocation(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withSecWebSocketOrigin(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withSecWebSocketProtocol(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withSecWebSocketVersion(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withServer(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withSetCookie(value: Cookie[Response])(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withTe(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withTrailer(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withTransferEncoding(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withUpgrade(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withUpgradeInsecureRequests(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withUserAgent(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withVary(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withVia(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withWarning(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withWebSocketLocation(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withWebSocketOrigin(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withWebSocketProtocol(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withWwwAuthenticate(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withXFrameOptions(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO
final def withXRequestedWith(value: CharSequence)(implicit trace: Trace): A
Inherited from:
HeaderModifierZIO

Concrete fields

val http: HttpApp[R, E]