InspectConfig
pub struct InspectConfig<'a> { /* private fields */ }Configuration for inspecting a Request using Security.
Methods
buffer_size
View sourcefn buffer_size(self, buffer_size: usize) -> SelfSet a buffer size for the response.
Parameters
- self: Self
- buffer_size: usize
Returns
client_ip
View sourceSpecify an explicit client IP address to inspect.
By default, inspect will use the IP address that made the request to the running Compute service, but you may want to use a different IP when service chaining or if requests are proxied from outside of Fastly's network.
Parameters
- self: Self
- ip: IpAddr
Returns
corp
View sourceSet a corp name for the configuration.
Parameters
- self: Self
- name: impl ToString
Returns
from_handles
View sourceCreate a new configuration for inspecting an explicit pair of handles with Security.
Parameters
- req_handle: &RequestHandle
- body_handle: &BodyHandle
Returns
from_request
View sourceCreate a new configuration for inspecting the handles associated with a given Request with Security.
Parameters
- req: &Request
Returns
Create a new configuration for inspecting a request with Security.
Parameters
- req_handle: &RequestHandle
- body_handle: &BodyHandle
Returns
workspace
View sourceSet a workspace name for the configuration.
Parameters
- self: Self
- name: impl ToString
Returns