Skip to main content

request_multipart_field_value

Function request_multipart_field_value 

Source
pub fn request_multipart_field_value(
    content_type: &str,
    body: &[u8],
    field_name: &str,
) -> Option<String>
Expand description

Extracts one text field from an in-memory multipart request body.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::request_multipart_field_value can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::request_multipart_field_value(todo!(), b"", todo!());