pub struct HttpOutputConfig {
pub backpressure: bool,
}Expand description
Configuration for data output via HTTP.
HTTP output adapters cannot be usefully configured as part of pipeline
configuration. Instead, instantiate them through the REST API as
/pipelines/{pipeline_name}/egress.
JSON schema
{
"description": "Configuration for data output via HTTP.\n\nHTTP output adapters cannot be usefully configured as part of pipeline\nconfiguration. Instead, instantiate them through the REST API as\n`/pipelines/{pipeline_name}/egress`.",
"type": "object",
"properties": {
"backpressure": {
"description": "Apply backpressure on the pipeline when the HTTP client cannot receive\ndata fast enough.\n\nWhen this flag is set to false (the default), the HTTP connector drops data\nchunks if the client is not keeping up with its output. This prevents\na slow HTTP client from slowing down the entire pipeline.\n\nWhen the flag is set to true, the connector waits for the client to receive\neach chunk and blocks the pipeline if the client cannot keep up.",
"default": false,
"type": "boolean"
}
}
}Fields§
§backpressure: boolApply backpressure on the pipeline when the HTTP client cannot receive data fast enough.
When this flag is set to false (the default), the HTTP connector drops data chunks if the client is not keeping up with its output. This prevents a slow HTTP client from slowing down the entire pipeline.
When the flag is set to true, the connector waits for the client to receive each chunk and blocks the pipeline if the client cannot keep up.
Implementations§
Source§impl HttpOutputConfig
impl HttpOutputConfig
pub fn builder() -> HttpOutputConfig
Trait Implementations§
Source§impl Clone for HttpOutputConfig
impl Clone for HttpOutputConfig
Source§fn clone(&self) -> HttpOutputConfig
fn clone(&self) -> HttpOutputConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpOutputConfig
impl Debug for HttpOutputConfig
Source§impl<'de> Deserialize<'de> for HttpOutputConfig
impl<'de> Deserialize<'de> for HttpOutputConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&HttpOutputConfig> for HttpOutputConfig
impl From<&HttpOutputConfig> for HttpOutputConfig
Source§fn from(value: &HttpOutputConfig) -> Self
fn from(value: &HttpOutputConfig) -> Self
Converts to this type from the input type.
Source§impl From<HttpOutputConfig> for HttpOutputConfig
impl From<HttpOutputConfig> for HttpOutputConfig
Source§fn from(value: HttpOutputConfig) -> Self
fn from(value: HttpOutputConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for HttpOutputConfig
impl Serialize for HttpOutputConfig
Source§impl TryFrom<HttpOutputConfig> for HttpOutputConfig
impl TryFrom<HttpOutputConfig> for HttpOutputConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: HttpOutputConfig) -> Result<Self, ConversionError>
fn try_from(value: HttpOutputConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for HttpOutputConfig
impl RefUnwindSafe for HttpOutputConfig
impl Send for HttpOutputConfig
impl Sync for HttpOutputConfig
impl Unpin for HttpOutputConfig
impl UnsafeUnpin for HttpOutputConfig
impl UnwindSafe for HttpOutputConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more