HttpGatewayResponseBody

Type Alias HttpGatewayResponseBody 

Source
pub type HttpGatewayResponseBody = Either<ResponseBodyStream, Full<Bytes>>;

Aliased Type§

pub enum HttpGatewayResponseBody {
    Left(StreamBody<Pin<Box<dyn Stream<Item = Result<Frame<Bytes>, AgentError>> + Send>>>),
    Right(Full<Bytes>),
}

Variants§

§

Left(StreamBody<Pin<Box<dyn Stream<Item = Result<Frame<Bytes>, AgentError>> + Send>>>)

A value of type L

§

Right(Full<Bytes>)

A value of type R