zio.http

package zio.http

Members list

Type members

Classlikes

trait Body

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

Companion
object
Supertypes
class Object
trait Matchable
class Any
Self type
object Body

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Body.type
final case class Boundary(id: String, charset: Charset)

A multipart boundary, which consists of both the boundary and its charset.

A multipart boundary, which consists of both the boundary and its charset.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object Boundary

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Boundary.type
trait Channel[-In, +Out]

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 Object
trait Matchable
class Any
Self type
Channel[In, Out]
sealed trait ChannelEvent[+A]

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 Object
trait Matchable
class Any
Known subtypes
class Read[A]
object Registered
object Unregistered
Self type
object ChannelEvent

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
object Charsets

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Charsets.type
sealed trait ClientAuth

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Optional
object Required
object ClientAuth

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ClientAuth.type
trait ClientDriver

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ClientDriver

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait ClientSSLCertConfig

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ClientSSLConfig

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ZCompose
trait ConnectionPool[Connection]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait ConnectionPoolConfig

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Disabled
class Dynamic
class Fixed
class FixedPerHost

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait 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.

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 Object
trait Matchable
class Any
Known subtypes
class Request
class Response
Self type
object Cookie

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Cookie.type
final case class Credentials(uname: String, upassword: Secret)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait Decompression

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object No
object NonStrict
object Strict
object Decompression

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
trait DnsResolver

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object DnsResolver

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait Driver

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Driver.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Driver
sealed trait Flash[+A]

Flash represents a flash value that one can retrieve from the flash scope.

Flash represents a flash value that one can retrieve from the flash scope.

The flash scope consists of a serialized and url-encoded json object built with zio-schema.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Self type
Flash[A]
object Flash

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Flash.type
final case class Form(formData: Chunk[FormField])

Represents a form that can be either multipart or url encoded.

Represents a form that can be either multipart or url encoded.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Form

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Form.type
sealed trait FormDecodingError extends Exception

Represents a form decoding error.

Represents a form decoding error.

Attributes

Companion
object
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
Self type

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait FormField

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 Object
trait Matchable
class Any
Known subtypes
class Binary
class Simple
class Text
object FormField

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
FormField.type
sealed trait Handler[-R, +Err, -In, +Out]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Self type
Handler[R, Err, In, Out]

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Handler.type
final case class HandlerAspect[-Env, +CtxOut](protocol: ProtocolStack[Env, Request, (Request, CtxOut), Response, Response]) extends Middleware[Env]

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 Serializable
trait Product
trait Equals
trait Middleware[Env]
class Object
trait Matchable
class Any
Show all
Self type
HandlerAspect[Env, CtxOut]
object HandlerAspect

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Handler
Self type
Handler.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Handler
sealed trait Header

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Accept
class Br
class Compress
class Deflate
class GZip
class Identity
class Multiple
class NoPreference
class Unknown
object Any
class Multiple
class Single
class AcceptPatch
trait AcceptRanges
object Bytes
object None
object Allow
object DoNotAllow
object All
object None
class Some
object All
object None
class Some
object All
class Specific
object All
object None
class Some
class Age
class Allow
class Basic
class Bearer
class Digest
class Unparsed
trait CacheControl
object Immutable
class MaxAge
class MaxStale
class MinFresh
class Multiple
object NoCache
object NoStore
object NoTransform
object OnlyIfCached
object Private
object Public
class SMaxAge
class StaleIfError
trait Connection
object Close
object KeepAlive
class ContentBase
class Attachment
class FormField
class Inline
object Br
object Compress
object Deflate
object GZip
class Multiple
object Arabic
object Bulgarian
object Catalan
object Chinese
object Croatian
object Czech
object Danish
object Dutch
object English
object Estonian
object Finnish
object French
object German
object Greek
object Hebrew
object Hindi
object Hungarian
object Icelandic
object Indonesian
object Italian
object Japanese
object Korean
object Latvian
object Lithuanian
object Norwegian
object Polish
object Portuguese
object Romanian
object Russian
object Serbian
object Slovak
object Slovenian
object Spanish
object Swedish
object Thai
object Turkish
object Ukrainian
object Vietnamese
class ContentMd5
trait ContentRange
class EndTotal
class RangeTotal
class StartEnd
class PluginTypes
class Referrer
class ReportTo
class ReportUri
class Sandbox
class SourcePolicy
class TrustedTypes
object Base64
object Binary
object EightBit
object SevenBit
class XToken
class ContentType
class Cookie
class Custom
trait DNT
object NotSpecified
class Date
trait ETag
class Strong
class Weak
trait Expect
object 100-continue
class Expires
class Forwarded
class From
class Host
trait IfMatch
object Any
class ETags
trait IfNoneMatch
object Any
class ETags
trait IfRange
class DateTime
class ETag
class LastModified
class Link
class Location
class MaxForwards
trait Origin
object Null
class Value
trait Pragma
object NoCache
trait Range
class Multiple
class Prefix
class Single
class Suffix
class Referer
trait RetryAfter
class ByDate
class ByDuration
class Extensions
class Token
class Server
class SetCookie
trait Te
class Compress
class Deflate
class GZip
class Multiple
object Trailers
class Trailer
object Chunked
object Compress
object Deflate
object GZip
class Multiple
trait Upgrade
class Multiple
class Protocol
trait UserAgent
class Comment
class Complete
class Product
trait Vary
class Headers
object Star
trait Via
class Detailed
class Multiple
class Basic
class Bearer
class Digest
class HOBA
class Mutual
class Negotiate
class SCRAM
class Unknown
class Warning
object Deny
object SameOrigin
Show all
object Header

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Header.type
sealed trait Headers extends Iterable[Header]

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
Self type
object Headers

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Headers.type
object HttpApp

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
HttpApp.type

Attributes

Supertypes
class Object
trait Matchable
class Any
final case class MediaType(mainType: String, subType: String, compressible: Boolean, binary: Boolean, fileExtensions: List[String], extensions: Map[String, String], parameters: Map[String, String])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object MediaType

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
MediaType.type
sealed trait Method

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 Object
trait Matchable
class Any
Known subtypes
object ANY
object CONNECT
class CUSTOM
object DELETE
object GET
object HEAD
object OPTIONS
object PATCH
object POST
object PUT
object TRACE
Show all
Self type
object Method

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Method.type
trait Middleware[-UpperEnv]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class HandlerAspect[Env, CtxOut]
Self type
Middleware[UpperEnv]
object Middleware

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Middleware.type
final case class Path

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object Path

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Path.type
sealed trait ProtocolStack[-Env, -IncomingIn, +IncomingOut, -OutgoingIn, +OutgoingOut]

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 Object
trait Matchable
class Any
Self type
ProtocolStack[Env, IncomingIn, IncomingOut, OutgoingIn, OutgoingOut]
object ProtocolStack

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class Proxy(url: URL, credentials: Option[Credentials], headers: Headers)

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object Proxy

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Proxy.type
trait QueryParams

A collection of query parameters.

A collection of query parameters.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
object QueryParams

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait QueryParamsError extends Exception, NoStackTrace

Attributes

Companion
object
Supertypes
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Malformed
class Missing

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class Request(version: Version, method: Method, url: URL, headers: Headers, body: Body, remoteAddress: Option[InetAddress], remoteCertificate: Option[Certificate])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object Request

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Request.type
final class RequestHandlerInput[A, I](val zippable: Out[A, Request, I])

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Response(status: Status, headers: Headers, body: Body)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object Response

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Response.type
sealed trait Route[-Env, +Err]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Self type
Route[Env, Err]
object Route

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Route.type
final case class RoutePattern[A](method: Method, pathCodec: PathCodec[A])

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object RoutePattern

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class Routes[-Env, +Err](routes: Chunk[Route[Env, Err]])

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Routes[Env, Err]

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
Routes.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Routes
final case class SSLConfig(behaviour: HttpBehaviour, data: Data, provider: Provider, clientAuth: Option[ClientAuth], includeClientCert: Boolean)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SSLConfig

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
SSLConfig.type
sealed trait Scheme

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Custom
object HTTP
object HTTPS
object WS
object WSS
Self type
object Scheme

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Scheme.type
trait Server

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 Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Server.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Server
final case class ServerSentEvent(data: String, eventType: Option[String], id: Option[String], retry: Option[Int])

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 in milliseconds

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SocketDecoder(maxFramePayloadLength: Int, expectMaskedFrames: Boolean, allowMaskMismatch: Boolean, allowExtensions: Boolean, closeOnProtocolViolation: Boolean, withUTF8Validator: Boolean)

Frame decoder configuration

Frame decoder configuration

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object SocketDecoder

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Status extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
Self type
object Status

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Status.type
final case class StreamingForm(source: ZStream[Any, Throwable, Byte], boundary: Boundary, bufferSize: Int)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object StreamingForm

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait ToHandler[H]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object ToHandler

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ToHandler.type
final case class URL(path: Path, kind: Location, queryParams: QueryParams, fragment: Option[Fragment]) extends URLPlatformSpecific

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait QueryChecks[URL]
trait QueryGetters[URL]
class Object
trait Matchable
class Any
Show all
Self type
URL
object URL

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
URL.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class URL
Self type
URL

Attributes

Supertypes
class Object
trait Matchable
class Any
sealed trait Version

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Default
object Http_1_0
object Http_1_1
Self type
object Version

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Version.type
final case class WebSocketApp[-R](handler: Handler[R, Throwable, WebSocketChannel, Any], customConfig: Option[WebSocketConfig])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object WebSocketApp

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class WebSocketConfig(subprotocols: Option[String], handshakeTimeoutMillis: Long, forceCloseTimeoutMillis: Long, handleCloseFrames: Boolean, sendCloseFrame: CloseStatus, dropPongFrames: Boolean, decoderConfig: SocketDecoder)

Server side websocket configuration

Server side websocket configuration

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait WebSocketFrame extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Binary
class Close
class Continuation
object Ping
object Pong
class Text
Show all
Self type

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
trait WithContext[C]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object WithContext

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
final case class ZClient[-Env, -In, +Err, +Out](version: Version, url: URL, headers: Headers, sslConfig: Option[ClientSSLConfig], proxy: Option[Proxy], bodyEncoder: BodyEncoder[Env, Err, In], bodyDecoder: BodyDecoder[Env, Err, Out], driver: Driver[Env, Err])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait HeaderChecks[ZClient[Env, In, Err, Out]]
trait HeaderModifier[ZClient[Env, In, Err, Out]]
class Object
trait Matchable
class Any
Show all
Self type
ZClient[Env, In, Err, Out]

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
ZClient.type
trait ZClientAspect[+LowerEnv, -UpperEnv, +LowerIn, -UpperIn, +LowerErr, -UpperErr, +LowerOut, -UpperOut]

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 Object
trait Matchable
class Any
Self type
ZClientAspect[LowerEnv, UpperEnv, LowerIn, UpperIn, LowerErr, UpperErr, LowerOut, UpperOut]
object ZClientAspect

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ZClient
trait ZCompose[+LeftLower, -LeftUpper, LeftOut[In], +RightLower, -RightUpper, RightOut[In]]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ZCompose.type

Deprecated classlikes

final case class HttpApp[-Env](routes: Routes[Env, Response]) extends PartialFunction[Request, ZIO[Env, Response, Response]]

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
Deprecated
true
Supertypes
trait Serializable
trait Product
trait Equals
trait Request => ZIO[Env, Response, Response]
class Object
trait Matchable
class Any
Show all
Self type
HttpApp[Env]

Types

type RequestHandler[-R, +Err] = Handler[R, Err, Request, Response]

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

def Client: ZClient.type
def anyOf(name: String, names: String*): PathCodec[Unit]
def handler[H](handler: => H)(implicit h: ToHandler[H]): Handler[h.Env, h.Err, h.In, h.Out]

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

def handlerTODO(message: String): Handler[Any, Nothing, Any, Nothing]
def int(name: String): PathCodec[Int]
def long(name: String): PathCodec[Long]
def string(name: String): PathCodec[String]
def uuid(name: String): PathCodec[UUID]
def withContext[C](fn: => C)(implicit c: WithContext[C]): ZIO[c.Env, c.Err, c.Out]

Concrete fields

Extensions

Inherited extensions

extension (inline sc: StringContext)
inline def url(inline args: Any*): URL

Attributes

Inherited from:
UrlInterpolator
extension (inline sc: StringContext)
inline def md(inline args: Any*): Doc

Attributes

Inherited from:
MdInterpolator