Skip to main content

format_headers

Function format_headers 

Source
pub fn format_headers(host: &str, options: &RequestOptions) -> String
Expand description

Formats HTTP headers into a request-ready string.

§Arguments

  • host - The host name to include in the Host header.
  • options - The RequestOptions containing custom headers and cookies.

§Returns

A formatted string of HTTP headers.