Skip to main content

relay_body

Function relay_body 

Source
pub(super) fn relay_body(
    status: StatusCode,
    headers: HeaderMap,
    inner: Pin<Box<dyn Stream<Item = Result<Bytes, Error>> + Send>>,
    streaming: bool,
    grant: &Grant,
    model: &'static Model,
    price_factor: f64,
) -> Response
Expand description

A body (the upstream’s, or one made here from it) sent on through the meter. streaming: it is text/event-stream.