Skip to main content

from_request

Function from_request 

Source
pub fn from_request(
    config: &AppConfig,
    prefs: &Preferences,
    method: &str,
    path: &str,
    query_string: &str,
    headers: &[(String, String)],
    body: Bytes,
) -> Result<ApiRequest, Error>
Expand description

Build an ApiRequest from HTTP request parts.

Build an ApiRequest from raw HTTP components.