zhttp.service

Type members

Classlikes

final case class Channel[-A](channel: Channel, convert: A => Any)

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.

Companion:
object
object Channel
Companion:
class
final case class ChannelEvent[-A, +B](channel: Channel[A], event: Event[B])

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.

Companion:
object
Companion:
class
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

object Handler
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
trait Logging

Base trait to configure logging. Feel free to edit this file as per your requirements to slice and dice internal logging.

Base trait to configure logging. Feel free to edit this file as per your requirements to slice and dice internal logging.

final class RequestBodyHandler(val callback: HttpContent => Any) extends SimpleChannelInboundHandler[HttpContent]
sealed trait Server[-R, +E]
Companion:
object
object Server
Companion:
class
final class WebSocketAppHandler[R](zExec: HttpRuntime[R], app: SocketApp[R], isClient: Boolean) 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 = ChannelFactory[Channel]
type EventLoopGroup = EventLoopGroup
type ServerChannelFactory = ChannelFactory[ServerChannel]
type UServer = Server[Any, Nothing]

Value members

Inherited fields

Controls if you want to pipe netty logs into the zhttp logger.

Controls if you want to pipe netty logs into the zhttp logger.

Inherited from:
Logging