zio.http
Members list
Type members
Classlikes
An immutable and type-safe representation of one or more netty channels. A
represents the type of messages that can be written on the channel.
An immutable and type-safe representation of one or more netty channels. A
represents the type of messages that can be written on the channel.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class ChannelNetty[A]
Immutable and type-safe representation of events that are triggered on a
netty channel. A
represents the inbound message type and B
represents the
outbound message type that's allowed on the channel.
Immutable and type-safe representation of events that are triggered on a
netty channel. A
represents the inbound message type and B
represents the
outbound message type that's allowed on the channel.
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- ChannelEvent.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
- ChannelNetty[A]
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- ChannelNetty.type
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- ClientConfig.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class NettyClientDriver
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ClientDriver.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object Default.typeclass FromCertFileclass FromCertResourceclass FromTrustStoreFileclass FromTrustStoreResource
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ClientSSLConfig.type
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait NettyConnectionPool
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ConnectionPoolConfig.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object RequestCookieDecoder.typeobject ResponseCookieDecoder.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- CookieDecoder.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object RequestCookieEncoder.typeobject ResponseCookieEncoder.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- CookieEncoder.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- Decompression.type
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Path is an immutable representation of a urls path. Internally it stores each
element of a path in a sequence of Segment
. This allows for powerful
compositional APIs.
Path is an immutable representation of a urls path. Internally it stores each
element of a path in a sequence of Segment
. This allows for powerful
compositional APIs.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class IntExtractor
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- HandlerAspect.type
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
IsMono is a type-constraint that is used by the middleware api for allowing some operators only when the following condition is met.
IsMono is a type-constraint that is used by the middleware api for allowing some operators only when the following condition is met.
Condition: Since a middleware takes in an Http and returns a new Http, IsMono, makes sure that the type parameters of the incoming Http and the ones for the outgoing Http is the same.
For Eg: IsMono will be defined for a middleware that looks as follows
val mid: Middleware[Any, Nothing, Request, Response, Request, Response]
This is because both the middleware is defined from (Request, Response) => (Request, Response). Consider another example:
val mid: Middleware[Any, Nothing, Request, Response, UserRequest, UserResponse]
In this case, the incoming and outgoing types are different viz. (Request, Response) => (UserRequest, UserResponse), hence there is no IsMono defined for such middlewares.
Attributes
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- Middleware.type
Models the set of operations that one would want to apply on a Response.
Models the set of operations that one would want to apply on a Response.
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Represents the connection to the forward proxy before running the request
Represents the connection to the forward proxy before running the request
Attributes
- 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
- Companion:
- object
- Graph
- Supertypes
- Self type
Attributes
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- QueryParams.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait HeaderChecks[Request]trait HeaderGetters[Request]trait HeaderModifier[Request]class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait HeaderChecks[Response]trait HeaderGetters[Response]trait HeaderModifier[Response]class Objecttrait Matchableclass Any
- Self type
Instead of using just String
as path params, using the RouteDecoderModule
we can extract and converted params into a specific type also.
Instead of using just String
as path params, using the RouteDecoderModule
we can extract and converted params into a specific type also.
Http.collect[Request] {
case GET -> !! / "user" / int(id) => Response.text("User id requested: ${id}")
case GET -> !! / "user" / name => Response.text("User name requested: ${name}")
}
If the request looks like GET /user/100
then it would match the first case.
This is because internally the id
param can be decoded into an Int
. If a
request of the form GET /user/zio
is made, in that case the second case is
matched.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- ServerConfig.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
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
Inherited classlikes
Attributes
- Inherited from:
- RequestSyntax (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- PathSyntax (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- PathSyntax (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes
Attributes
- Inherited from:
- RouteDecoderModule
- Graph
- Supertypes