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

#include <UploadPathDirective.hpp>

Inheritance diagram for config::UploadPathDirective:
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_ = "upload_path"

Member Function Documentation

◆ getName()

std::string const & config::UploadPathDirective::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::UploadPathDirective::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::UploadPathDirective::name_ = "upload_path"
staticprivate

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