pub struct HttpExecutor<F> {
pub host_validator: F,
}Expand description
HTTP/GraphQL protocol executor.
Holds a host validator closure used for DNS resolution and SSRF protection.
Fields§
§host_validator: FTrait Implementations§
Source§impl<F, Fut> ProtocolExecutor for HttpExecutor<F>
impl<F, Fut> ProtocolExecutor for HttpExecutor<F>
Source§type PreparedData = PreparedHttpData
type PreparedData = PreparedHttpData
Protocol-specific prepared data (e.g.
PreparedHttpData, PreparedBashScript).Source§async fn execute(
&mut self,
data: &PreparedHttpData,
ctx: &ExecutionContext,
) -> Result<RawExecutionResult>
async fn execute( &mut self, data: &PreparedHttpData, ctx: &ExecutionContext, ) -> Result<RawExecutionResult>
Execute a single protocol request and return the raw result.
Auto Trait Implementations§
impl<F> Freeze for HttpExecutor<F>where
F: Freeze,
impl<F> RefUnwindSafe for HttpExecutor<F>where
F: RefUnwindSafe,
impl<F> Send for HttpExecutor<F>where
F: Send,
impl<F> Sync for HttpExecutor<F>where
F: Sync,
impl<F> Unpin for HttpExecutor<F>where
F: Unpin,
impl<F> UnsafeUnpin for HttpExecutor<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for HttpExecutor<F>where
F: UnwindSafe,
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