[][src]Struct emmett::inputs::Http

pub struct Http {
    pub additional_codecs: Option<HashMap<String, String>>,
    pub cipher_suites: Option<Vec<String>>,
    pub host: Option<String>,
    pub keystore: Option<&'static Path>,
    pub keystore_password: Option<String>,
    pub password: Option<String>,
    pub port: Option<u64>,
    pub max_pending_requests: Option<u64>,
    pub response_headers: Option<HashMap<String, String>>,
    pub ssl: Option<bool>,
    pub ssl_certificate: Option<&'static Path>,
    pub ssl_certificate_authorities: Option<Vec<String>>,
    pub ssl_handshake_timetout: Option<u64>,
    pub ssl_key: Option<&'static Path>,
    pub ssl_key_passphrase: Option<String>,
    pub ssl_verify_mode: Option<String>,
    pub threads: Option<u64>,
    pub tls_max_version: Option<u64>,
    pub tls_min_version: Option<u64>,
    pub user: Option<String>,
    pub verify_mode: Option<String>,
}

Using this input you can receive single or multiline events over http(s). Applications can send an HTTP request to the endpoint started by this input and Logstash will convert it into an event for subsequent processing. Users can pass plain text, JSON, or any formatted data and use a corresponding codec with this input. For Content-Type application/json the json codec is used, but for all other data formats, plain codec is used.

This input can also be used to receive webhook requests to integrate with other services and applications. By taking advantage of the vast plugin ecosystem available in Logstash you can trigger actionable events right from your application.

Fields

additional_codecs: Option<HashMap<String, String>>cipher_suites: Option<Vec<String>>host: Option<String>keystore: Option<&'static Path>keystore_password: Option<String>password: Option<String>port: Option<u64>max_pending_requests: Option<u64>response_headers: Option<HashMap<String, String>>ssl: Option<bool>ssl_certificate: Option<&'static Path>ssl_certificate_authorities: Option<Vec<String>>ssl_handshake_timetout: Option<u64>ssl_key: Option<&'static Path>ssl_key_passphrase: Option<String>ssl_verify_mode: Option<String>threads: Option<u64>tls_max_version: Option<u64>tls_min_version: Option<u64>user: Option<String>verify_mode: Option<String>

Auto Trait Implementations

impl Send for Http

impl Unpin for Http

impl Sync for Http

impl UnwindSafe for Http

impl RefUnwindSafe for Http

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self