Skip to main content

apply_known_header

Function apply_known_header 

Source
pub fn apply_known_header(
    request: &mut HttpRequest,
    header_name: &str,
    header_value: &str,
    content_length: &mut i64,
    chunked_transfer: &mut bool,
)
Expand description

Applies the bounded set of request headers consumed by the runtime.

§Parameters

§Returns

Returns after crate::http::apply_known_header applies its in-place effect.

§Examples

ⓘ
let _result = pharos_runtime_core::http::apply_known_header(todo!(), "content-type", "application/json", todo!(), todo!());
  • crate::http for adjacent helpers that share the same runtime surface.