zio.http
Members list
Packages
Type members
Classlikes
Represents the body of a request or response. The body can be a fixed chunk of bytes, a stream of bytes, or form data, or any type that can be encoded into such representations (such as textual data using some character encoding, the contents of files, JSON, etc.).
Represents the body of a request or response. The body can be a fixed chunk of bytes, a stream of bytes, or form data, or any type that can be encoded into such representations (such as textual data using some character encoding, the contents of files, JSON, etc.).
Attributes
A multipart boundary, which consists of both the boundary and its charset.
A Channel
is an asynchronous communication channel that supports receiving messages of type In
and sending messages of type Out
.
A Channel
is an asynchronous communication channel that supports receiving messages of type In
and sending messages of type Out
.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Immutable and type-safe representation of events that are triggered on a netty channel. A
represents the message type.
Immutable and type-safe representation of events that are triggered on a netty channel. A
represents the message type.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
-
ChannelEvent[A]
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ChannelEvent.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Charsets.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ClientAuth.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ClientDriver.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class FromClientCertFileclass FromClientCertResource
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ClientSSLCertConfig.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Defaultclass FromCertFileclass FromCertResourceclass FromClientAndServerCertclass FromJavaxNetSslclass FromTrustStoreFileclass FromTrustStoreResourceShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ClientSSLConfig.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ZCompose
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ConnectionPoolConfig.type
Cookie is an immutable and type-safe representation of an HTTP cookie. There are two types of cookies: request cookies and response cookies. These can be created with the constructors in the companion object of Cookie.
Cookie is an immutable and type-safe representation of an HTTP cookie. There are two types of cookies: request cookies and response cookies. These can be created with the constructors in the companion object of Cookie.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Decompression.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DnsResolver.type
Attributes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Driver
Configuration for the response generation
Configuration for the response generation
Value parameters
- errorFormat
-
the preferred format for the error response. If the context in which the response is created has access to an Accept header, the header will be used preferably to determine the format.
- maxStackTraceDepth
-
maximum number of stack trace lines to include in the response body. Set to 0 to include all lines.
- withErrorBody
-
if true, includes the error message in the response body
- withStackTrace
-
if true, includes the stack trace in the response body
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
ErrorResponseConfig.type
Flash
represents a flash value that one can retrieve from the flash scope.
Represents a form decoding error.
Represents a form decoding error.
Attributes
- Companion
- object
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
- Self type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
FormDecodingError.type
Represents a field in a form. Every field contains name, content type (perhaps just plaintext), type-specific content, and an optional filename.
Represents a field in a form. Every field contains name, content type (perhaps just plaintext), type-specific content, and an optional filename.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
A zio.http.HandlerAspect is a kind of zio.http.ProtocolStack that is specialized to transform a handler's incoming requests and outgoing responses. Each layer in the stack corresponds to a separate transformation.
A zio.http.HandlerAspect is a kind of zio.http.ProtocolStack that is specialized to transform a handler's incoming requests and outgoing responses. Each layer in the stack corresponds to a separate transformation.
Layers may incorporate layer-specific information into a generic type parameter, referred to as middleware context, which composes using tupling.
Layers may also be stateful at the level of each transformation application. So, for example, a layer that is timing request durations may capture the start time of the request in the incoming interceptor, and pass this state to the outgoing interceptor, which can then compute the duration.
zio.http.HandlerAspect is more than just a wrapper around zio.http.ProtocolStack, as its concatenation operator has been specialized to entuple contexts, so that each layer may only add context to the contextual output.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Middleware[Env]class Objecttrait Matchableclass AnyShow all
- Self type
-
Attributes
- Companion
- class
- Supertypes
- Self type
-
HandlerAspect.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Handler
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Accepttrait AcceptEncodingclass Brclass Compressclass Deflateclass GZipclass Identityclass Multipleclass NoPreferenceclass Unknowntrait AcceptLanguageobject Anyclass Multipleclass Singleclass AcceptPatchtrait AcceptRangesobject Bytesobject Noneobject Allowobject DoNotAllowobject Allobject Noneclass Someobject Allobject Noneclass Sometrait AccessControlAllowOriginobject Allclass Specificobject Allobject Noneclass Someclass AccessControlMaxAgeclass Ageclass Allowtrait Authorizationclass Basicclass Bearerclass Digestclass Unparsedtrait CacheControlobject Immutableclass MaxAgeclass MaxStaleclass MinFreshclass Multipleobject MustRevalidateobject MustUnderstandobject NoCacheobject NoStoreobject NoTransformobject OnlyIfCachedobject Privateobject ProxyRevalidateobject Publicclass SMaxAgeclass StaleIfErrorclass StaleWhileRevalidateclass ClearSiteDatatrait Connectionobject Closeobject KeepAliveclass ContentBasetrait ContentDispositionclass Attachmentclass FormFieldclass Inlinetrait ContentEncodingobject Brobject Compressobject Deflateobject GZipclass Multipletrait ContentLanguageobject Arabicobject Bulgarianobject Catalanobject Chineseobject Croatianobject Czechobject Danishobject Dutchobject Englishobject Estonianobject Finnishobject Frenchobject Germanobject Greekobject Hebrewobject Hindiobject Hungarianobject Icelandicobject Indonesianobject Italianobject Japaneseobject Koreanobject Latvianobject Lithuanianobject Norwegianobject Polishobject Portugueseobject Romanianobject Russianobject Serbianobject Slovakobject Slovenianobject Spanishobject Swedishobject Thaiobject Turkishobject Ukrainianobject Vietnameseclass ContentLengthclass ContentLocationclass ContentMd5trait ContentRangeclass EndTotalclass RangeTotalclass StartEndtrait ContentSecurityPolicyobject BlockAllMixedContentclass PluginTypesclass Referrerclass ReportToclass ReportUriclass RequireSriForclass Sandboxclass SourcePolicyclass TrustedTypesobject UpgradeInsecureRequeststrait ContentTransferEncodingobject Base64object Binaryobject EightBitobject QuotedPrintableobject SevenBitclass XTokenclass ContentTypeclass Cookieclass Customtrait DNTobject NotSpecifiedobject TrackingAllowedobject TrackingNotAllowedclass Datetrait ETagclass Strongclass Weaktrait Expectobject 100-continueclass Expiresclass Forwardedclass Fromclass Hosttrait IfMatchobject Anyclass ETagsclass IfModifiedSincetrait IfNoneMatchobject Anyclass ETagstrait IfRangeclass DateTimeclass ETagclass IfUnmodifiedSinceclass LastModifiedclass Linkclass Locationclass MaxForwardstrait Originobject Nullclass Valuetrait Pragmaobject NoCacheclass ProxyAuthenticateclass ProxyAuthorizationtrait Rangeclass Multipleclass Prefixclass Singleclass Suffixclass Referertrait RetryAfterclass ByDateclass ByDurationclass SecWebSocketAccepttrait SecWebSocketExtensionsclass Extensionsclass Tokenclass SecWebSocketKeyclass SecWebSocketLocationclass SecWebSocketOriginclass SecWebSocketProtocolclass SecWebSocketVersionclass Serverclass SetCookietrait Teclass Compressclass Deflateclass GZipclass Multipleobject Trailersclass Trailertrait TransferEncodingobject Chunkedobject Compressobject Deflateobject GZipclass Multipletrait Upgradeclass Multipleclass Protocolclass UpgradeInsecureRequestsclass UserAgenttrait Varyclass Headersobject Startrait Viaclass Detailedclass Multipletrait WWWAuthenticateclass AWS4-HMAC-SHA256class Basicclass Bearerclass Digestclass HOBAclass Mutualclass Negotiateclass SCRAMclass Unknowntrait XFrameOptionsobject Denyobject SameOriginclass XRequestedWithShow all
Represents an immutable collection of headers. It extends HeaderExtensions and has a ton of powerful operators that can be used to add, remove and modify headers.
Represents an immutable collection of headers. It extends HeaderExtensions and has a ton of powerful operators that can be used to add, remove and modify headers.
NOTE: Generic operators that are not specific to Headers
should not be defined here. A better place would be one of the traits extended by HeaderExtension
.
Attributes
- Companion
- object
- Supertypes
-
trait IterableOnce[Header]trait HeaderChecks[Headers]trait HeaderGetterstrait HeaderModifier[Headers]class Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Represents an HTTP method, such as GET, PUT, POST, or DELETE.
Represents an HTTP method, such as GET, PUT, POST, or DELETE.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
- Self type
-
Middleware[UpperEnv]
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Middleware.type
Path is an immutable representation of the path of a URL. Internally it stores each element of a path in a sequence of text, together with flags on whether there are leading and trailing slashes in the path. This allows for a combination of precision and performance and supports a rich API.
Path is an immutable representation of the path of a URL. Internally it stores each element of a path in a sequence of text, together with flags on whether there are leading and trailing slashes in the path. This allows for a combination of precision and performance and supports a rich API.
Attributes
- Companion
- object
- Supertypes
- Self type
A zio.http.ProtocolStack represents a linear stack of protocol layers, each of which can statefully transform incoming and outgoing values of some handler.
A zio.http.ProtocolStack represents a linear stack of protocol layers, each of which can statefully transform incoming and outgoing values of some handler.
Protocol stacks can be thought of as a formal model of the process of transforming one handler into another handler.
Protocol stacks are designed to support precise semantics around error handling. In particular, if a layer successfully processes an incoming value of a handler, then that same layer will also have a chance to process the outgoing value of the handler. This requirement constrains the ways in which layers can fail, and the types of handlers they may be applied to.
In particular, protocol stacks can be applied to handlers that fail with the same type as their output type. This guarantees that should a handler fail, it will still produce an outgoing value that can be processed by all the layers that successfully transformed the incoming value.
Further, a layer may only fail while it processes an incoming value, and it may only value with the same type as its outgoing value. This guarantees that should a layer fail, it will still produce an outgoing value that can be processed by all the earlier layers that successfully transformed the incoming value.
In a way, the entire design of protocol stacks is geared at ensuring layers that successfully process incoming values will also have a chance to process outgoing values.
The only composition operator on protocol stacks is ++
, which simply chains two stacks together. This operator is associative and has an identity (which is the protocol stack that neither transforms incoming nor outgoing values, and which acts as an identity when used to transform handlers).
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ProtocolStack.type
Represents the connection to the forward proxy before running the request
Represents the connection to the forward proxy before running the request
Value parameters
- credentials:
-
credentials for the proxy server. Encodes credentials with basic auth and put under the 'proxy-authorization' header
- headers:
-
headers for the request to the proxy server
- url:
-
url address of the proxy server
Attributes
- Companion
- object
- Supertypes
- Self type
A collection of query parameters.
A collection of query parameters.
Attributes
- Companion
- object
- Supertypes
-
trait QueryChecks[QueryParams]trait QueryGetters[QueryParams]trait QueryModifier[QueryParams]class Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
QueryParams.type
Attributes
- Companion
- object
- Supertypes
-
trait NoStackTraceclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
- Self type
-
QueryParamsError.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait QueryChecks[Request]trait QueryGetters[Request]trait QueryModifier[Request]trait HeaderChecks[Request]trait HeaderGetterstrait HeaderModifier[Request]class Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RequestHandlerInput.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RequestStore.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HeaderChecks[Response]trait HeaderGetterstrait HeaderModifier[Response]class Objecttrait Matchableclass AnyShow all
- Self type
A pattern for matching routes that examines both HTTP method and path. In addition to specifying a method, patterns contain segment patterns, which are sequences of literals, integers, longs, and other segment types.
A pattern for matching routes that examines both HTTP method and path. In addition to specifying a method, patterns contain segment patterns, which are sequences of literals, integers, longs, and other segment types.
Typically, your entry point constructor for a route pattern would be zio.http.Method:
import zio.http.Method
import zio.http.codec.SegmentCodec._
val pattern = Method.GET / "users" / int("user-id") / "posts" / string("post-id")
However, you can use the convenience constructors in RoutePattern
, such as RoutePattern.GET
.
Attributes
- Companion
- object
- Supertypes
- Self type
-
RoutePattern[A]
Attributes
- Companion
- class
- Supertypes
- Self type
-
RoutePattern.type
An HTTP application is a collection of routes, all of whose errors have been handled through conversion into HTTP responses.
An HTTP application is a collection of routes, all of whose errors have been handled through conversion into HTTP responses.
HTTP applications can be installed into a zio.http.Server, which is capable of using them to serve requests.
Attributes
- Companion
- object
- Supertypes
- Self type
-
Attributes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Routes
Represents a server, which is capable of serving zero or more HTTP applications.
Represents a server, which is capable of serving zero or more HTTP applications.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Server
Server-Sent Event (SSE) as defined by https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events
Server-Sent Event (SSE) as defined by https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events
Value parameters
- data
-
data, may span multiple lines
- eventType
-
optional type, must not contain \n or \r
- id
-
optional id, must not contain \n or \r
- retry
-
optional reconnection delay
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
ServerSentEvent.type
Frame decoder configuration
Attributes
- Companion
- class
- Supertypes
- Self type
-
SocketDecoder.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class Customtrait Errortrait ClientErrorobject BadRequestobject Conflictobject ExpectationFailedobject FailedDependencyobject Forbiddenobject Goneobject LengthRequiredobject Lockedobject MethodNotAllowedobject MisdirectedRequestobject NotAcceptableobject NotFoundobject PaymentRequiredobject PreconditionFailedobject PreconditionRequiredobject ProxyAuthenticationRequiredobject RequestEntityTooLargeobject RequestHeaderFieldsTooLargeobject RequestTimeoutobject RequestUriTooLongobject RequestedRangeNotSatisfiableobject TooManyRequestsobject Unauthorizedobject UnorderedCollectionobject UnprocessableEntityobject UnsupportedMediaTypeobject UpgradeRequiredtrait ServerErrorobject BadGatewayobject GatewayTimeoutobject HttpVersionNotSupportedobject InsufficientStorageobject InternalServerErrorobject NotExtendedobject NotImplementedobject ServiceUnavailableobject VariantAlsoNegotiatestrait Informationalobject Continueobject Processingobject SwitchingProtocolstrait Redirectionobject Foundobject MovedPermanentlyobject MultipleChoicesobject NotModifiedobject PermanentRedirectobject SeeOtherobject TemporaryRedirectobject UseProxytrait Successobject Acceptedobject Createdobject MultiStatusobject NoContentobject NonAuthoritativeInformationobject Okobject PartialContentobject ResetContentShow all
- Self type
Attributes
- Companion
- class
- Supertypes
- Self type
-
StreamingForm.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait QueryChecks[URL]trait QueryGetters[URL]trait QueryModifier[URL]trait URLPlatformSpecificclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
- Self type
-
WebSocketApp[R]
Attributes
- Companion
- class
- Supertypes
- Self type
-
WebSocketApp.type
Server side websocket configuration
Attributes
- Companion
- class
- Supertypes
- Self type
-
WebSocketConfig.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
- Self type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
WebSocketFrame.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WithContext.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HeaderGettersclass Objecttrait Matchableclass AnyShow all
- Self type
-
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrortrait ZClientPlatformSpecificclass Objecttrait Matchableclass AnyShow all
- Self type
-
ZClient.type
A ZClientAspect
is capable on modifying some aspect of the execution of a client, such as metrics, tracing, encoding, decoding, or logging.
A ZClientAspect
is capable on modifying some aspect of the execution of a client, such as metrics, tracing, encoding, decoding, or logging.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ZClientAspect.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ZClient
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
Types
A channel that allows websocket frames to be written to it.
A channel that allows websocket frames to be written to it.
Attributes
A channel that allows websocket frames to be read and write to it.
A channel that allows websocket frames to be read and write to it.
Attributes
Value members
Concrete methods
A smart constructor that attempts to construct a handler from the specified value. If you have difficulty using this function, then please use the constructors on zio.http.Handler directly.
A smart constructor that attempts to construct a handler from the specified value. If you have difficulty using this function, then please use the constructors on zio.http.Handler directly.
Attributes
Extensions
Inherited extensions
Attributes
- Inherited from:
- UrlInterpolator
Attributes
- Inherited from:
- MdInterpolator