mist/encoder

Functions

pub fn encode_headers(headers: List(#(String, String))) -> BitBuilder
pub fn response_builder(status: Int, headers: List(
    #(String, String),
  )) -> BitBuilder
pub fn status_to_bit_string(status: Int) -> BitString
pub fn to_bit_builder(resp: Response(BitBuilder)) -> BitBuilder

Turns an HTTP response into a TCP message

Search Document