pub struct TlsForwardTask {
pub tls_type: String,
pub proxy: String,
pub method: TlsHttpMethod,
pub url: String,
pub headers: Option<BTreeMap<String, Value>>,
pub headers_order: Option<String>,
pub cookies: Option<BTreeMap<String, Value>>,
pub body: Option<Value>,
pub body_raw: bool,
pub extra: ExtraFields,
}Expand description
TLS forwarding task.
Fields§
§tls_type: StringWorker TLS fingerprint identifier.
proxy: StringProxy used for the upstream request.
method: TlsHttpMethodUpstream HTTP method.
url: StringUpstream URL.
headers: Option<BTreeMap<String, Value>>Optional upstream request headers.
headers_order: Option<String>Optional serialized header order.
Optional upstream request cookies.
body: Option<Value>Optional upstream request body.
body_raw: boolSetting it to true means the body is base64-encoded.
extra: ExtraFieldsAdditional worker parameters.
Implementations§
Source§impl TlsForwardTask
impl TlsForwardTask
pub fn serialize<__S>(
__self: &TlsForwardTask,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl TlsForwardTask
impl TlsForwardTask
Sourcepub fn builder() -> TlsForwardTaskBuilder
pub fn builder() -> TlsForwardTaskBuilder
Create an instance of TlsForwardTask using the builder syntax
Trait Implementations§
Source§impl Clone for TlsForwardTask
impl Clone for TlsForwardTask
Source§impl Debug for TlsForwardTask
impl Debug for TlsForwardTask
Source§impl Default for TlsForwardTask
impl Default for TlsForwardTask
Auto Trait Implementations§
impl Freeze for TlsForwardTask
impl RefUnwindSafe for TlsForwardTask
impl Send for TlsForwardTask
impl Sync for TlsForwardTask
impl Unpin for TlsForwardTask
impl UnsafeUnpin for TlsForwardTask
impl UnwindSafe for TlsForwardTask
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