Webserv
Loading...
Searching...
No Matches
config::CgiPassDirective Class Reference

#include <CgiPassDirective.hpp>

Inheritance diagram for config::CgiPassDirective:
config::IDirective

Public Member Functions

void process (Block &b, ParsedDirectiveArgs const &args) const
 The primary logic for processing the directive's arguments.
std::string const & getName () const
 Gets the name of the directive.
Public Member Functions inherited from config::IDirective
virtual ~IDirective ()
 Virtual destructor.

Static Private Attributes

static const std::string name_ = "cgi_pass"

Member Function Documentation

◆ getName()

std::string const & config::CgiPassDirective::getName ( ) const
inlinevirtual

Gets the name of the directive.

Returns
A constant reference to the directive's name (e.g., "listen").

Implements config::IDirective.

◆ process()

void config::CgiPassDirective::process ( Block & block,
ParsedDirectiveArgs const & args ) const
virtual

The primary logic for processing the directive's arguments.

Parameters
blockThe configuration block (ServerBlock or LocationBlock) to modify.
argsThe vector of string arguments for the directive.

Implements config::IDirective.

Member Data Documentation

◆ name_

const std::string config::CgiPassDirective::name_ = "cgi_pass"
staticprivate

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