gflare/response

Types

pub type Response

Values

pub fn bytes(response: Response, data: BitArray) -> Response
pub fn empty(status: Int) -> Response
pub fn json(response: Response, data: json.Json) -> Response
pub fn new(status: Int) -> Response
pub fn redirect(url: String, status: Int) -> Response
pub fn set_body(response: Response, body: String) -> Response
pub fn set_header(
  response: Response,
  name: String,
  value: String,
) -> Response
Search Document