Trait vector::sinks::util::http::HttpSink

source ·
pub trait HttpSink:
    Send
    + Sync
    + 'static {
    type Input;
    type Output;
    type Encoder: HttpEventEncoder<Self::Input>;

    // Required methods
    fn build_encoder(&self) -> Self::Encoder;
    fn build_request(
        &self,
        events: Self::Output,
    ) -> impl Future<Output = Result<Request<Bytes>>> + Send;
}

Required Associated Types§

Required Methods§

source

fn build_encoder(&self) -> Self::Encoder

source

fn build_request( &self, events: Self::Output, ) -> impl Future<Output = Result<Request<Bytes>>> + Send

Object Safety§

This trait is not object safe.

Implementors§