ewe

Types

pub opaque type Builder
pub type Connection =
  @internal Connection
pub type IpAddress {
  IpV4(Int, Int, Int, Int)
  IpV6(Int, Int, Int, Int, Int, Int, Int, Int)
}

Constructors

  • IpV4(Int, Int, Int, Int)
  • IpV6(Int, Int, Int, Int, Int, Int, Int, Int)

Values

pub fn bind(builder: Builder, interface: String) -> Builder
pub fn bind_all(builder: Builder) -> Builder
pub fn ip_address_to_string(address: IpAddress) -> String
pub fn ipv6(builder: Builder) -> Builder
pub fn new(
  handler: fn(request.Request(@internal Connection)) -> response.Response(
    bytes_tree.BytesTree,
  ),
) -> Builder
pub fn port(builder: Builder, port: Int) -> Builder
pub fn read_body(
  req: request.Request(@internal Connection),
) -> Result(request.Request(BitArray), Nil)
Search Document