Fastly Compute C++ SDK
Loading...
Searching...
No Matches
fastly::security::InspectConfig Class Reference

Configuration for inspecting a Request using Security. More...

#include <security.h>

Public Member Functions

 InspectConfig ()=default
 Create a new default InspectConfig
InspectConfig with_client_ip (std::string ip) &&
InspectConfig with_corp (std::string name) &&
 Set a corp name for the configuration.
InspectConfig with_workspace (std::string name) &&
 Set a workspace name for the configuration.
InspectConfig with_buffer_size (std::size_t size) &&
 Set a buffer size for the response.
const std::optional< std::string > & client_ip () const
const std::optional< std::string > & corp () const
const std::optional< std::string > & workspace () const
const std::optional< std::size_t > & buffer_size () const

Detailed Description

Configuration for inspecting a Request using Security.

Examples
ngwaf_inspect.cpp.

Constructor & Destructor Documentation

◆ InspectConfig()

fastly::security::InspectConfig::InspectConfig ( )
default

Create a new default InspectConfig

Member Function Documentation

◆ buffer_size()

const std::optional< std::size_t > & fastly::security::InspectConfig::buffer_size ( ) const
inline

◆ client_ip()

const std::optional< std::string > & fastly::security::InspectConfig::client_ip ( ) const
inline

◆ corp()

const std::optional< std::string > & fastly::security::InspectConfig::corp ( ) const
inline

◆ with_buffer_size()

InspectConfig fastly::security::InspectConfig::with_buffer_size ( std::size_t size) &&
inline

Set a buffer size for the response.

◆ with_client_ip()

InspectConfig fastly::security::InspectConfig::with_client_ip ( std::string ip) &&
inline

Specify an explicity 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.

◆ with_corp()

InspectConfig fastly::security::InspectConfig::with_corp ( std::string name) &&
inline

Set a corp name for the configuration.

◆ with_workspace()

InspectConfig fastly::security::InspectConfig::with_workspace ( std::string name) &&
inline

Set a workspace name for the configuration.

◆ workspace()

const std::optional< std::string > & fastly::security::InspectConfig::workspace ( ) const
inline

The documentation for this class was generated from the following file: