mist/internal/encoder

Values

pub fn encode_headers(
  headers: List(#(String, String)),
) -> bytes_tree.BytesTree
pub fn response_builder(
  status: Int,
  headers: List(#(String, String)),
  version: String,
) -> bytes_tree.BytesTree
pub fn status_to_bit_array(status: Int) -> BitArray
pub fn to_bytes_tree(
  resp: response.Response(bytes_tree.BytesTree),
  version: String,
) -> bytes_tree.BytesTree

Turns an HTTP response into a TCP message

✨ Search Document