pub struct HttpPushSink {
pub base_url: String,
pub authorization: Option<String>,
}Expand description
HTTP/1.1 PUT sink — pushes each object to {base_url}/{relative}.
Pure std: opens a TCP connection per object and writes a minimal request. Intended for origin CDN ingest / PUT-capable static hosts, not multipart.
Fields§
§base_url: StringBase URL without trailing slash, e.g. http://127.0.0.1:8080/live.
Optional Authorization header value.
Implementations§
Trait Implementations§
Source§impl Clone for HttpPushSink
impl Clone for HttpPushSink
Source§fn clone(&self) -> HttpPushSink
fn clone(&self) -> HttpPushSink
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 HttpPushSink
impl Debug for HttpPushSink
Auto Trait Implementations§
impl Freeze for HttpPushSink
impl RefUnwindSafe for HttpPushSink
impl Send for HttpPushSink
impl Sync for HttpPushSink
impl Unpin for HttpPushSink
impl UnsafeUnpin for HttpPushSink
impl UnwindSafe for HttpPushSink
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