Skip to main content

StreamResponse

Type Alias StreamResponse 

Source
pub type StreamResponse<T = Value> = HttpResponse<T>;
Expand description

Streaming response type, mirroring the Node and Python StreamResponse.

Alias of iii_helpers::http::HttpResponse; added for cross-language parity.

Aliased Type§

pub struct StreamResponse<T = Value> {
    pub status_code: u16,
    pub headers: HashMap<String, String>,
    pub body: T,
}

Fields§

§status_code: u16§headers: HashMap<String, String>§body: T