zhttp.service

Type members

Classlikes

final class ChannelFuture[A]
Companion:
object
Companion:
class
final case class Client[R](rtm: HttpRuntime[R], cf: ChannelFactory[Channel], el: EventLoopGroup) extends HttpMessageCodec
Companion:
object
object Client
Companion:
class

Simple wrapper over NioEventLoopGroup

Simple wrapper over NioEventLoopGroup

final class HttpRuntime[+R](strategy: Strategy[R])

Provides basic ZIO based utilities for any ZIO based program to execute in a channel's context. It will automatically cancel the execution when the channel closes.

Provides basic ZIO based utilities for any ZIO based program to execute in a channel's context. It will automatically cancel the execution when the channel closes.

Companion:
object
Companion:
class
final class RequestBodyHandler(val callback: UnsafeChannel => UnsafeContent => Unit) extends SimpleChannelInboundHandler[HttpContent]
sealed trait Server[-R, +E]
Companion:
object
object Server
Companion:
class
final class WebSocketAppHandler[R](zExec: HttpRuntime[R], app: SocketApp[R]) extends SimpleChannelInboundHandler[WebSocketFrame]

A generic SocketApp handler that can be used on both - the client and the server.

A generic SocketApp handler that can be used on both - the client and the server.

Types

type ChannelFactory = Has[ChannelFactory[Channel]]
type EventLoopGroup = Has[EventLoopGroup]
type ServerChannelFactory = Has[ChannelFactory[ServerChannel]]
type UServer = Server[Any, Nothing]