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

#include <AutoIndexDirective.hpp>

Inheritance diagram for config::AutoIndexDirective:
config::IDirective

Public Member Functions

virtual void process (Block &block, ParsedDirectiveArgs const &args) const
 The primary logic for processing the directive's arguments.
virtual 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_ = "autoindex"

Member Function Documentation

◆ getName()

virtual std::string const & config::AutoIndexDirective::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::AutoIndexDirective::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::AutoIndexDirective::name_ = "autoindex"
staticprivate

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