pub struct WebFetchEngineInput {
pub url: String,
pub method: String,
pub body: Option<String>,
pub headers: HashMap<String, String>,
pub timeout_ms: u64,
pub max_redirects: u32,
pub max_body_bytes: usize,
pub check_host: Arc<dyn Fn(String) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>> + Send + Sync>,
}Fields§
§url: String§method: String§body: Option<String>§headers: HashMap<String, String>§timeout_ms: u64§max_redirects: u32§max_body_bytes: usize§check_host: Arc<dyn Fn(String) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>> + Send + Sync>Called BEFORE each hop (including the first) with the target host. Returning Err aborts the fetch with INVALID_URL-shaped FetchError.
Auto Trait Implementations§
impl Freeze for WebFetchEngineInput
impl !RefUnwindSafe for WebFetchEngineInput
impl Send for WebFetchEngineInput
impl Sync for WebFetchEngineInput
impl Unpin for WebFetchEngineInput
impl UnsafeUnpin for WebFetchEngineInput
impl !UnwindSafe for WebFetchEngineInput
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