Class LocalHostFilter

Synopsis

#include <lib/inc/drogon/LocalHostFilter.h>

class LocalHostFilter : public HttpFilter<LocalHostFilter>

Description

A filter that prohibit access from other hosts.

Mentioned in

Inheritance

Ancestors: HttpFilter

Methods

LocalHostFilter
doFilterThis virtual function should be overrided in subclasses.

Source

Lines 24-33 in lib/inc/drogon/LocalHostFilter.h. Line 25 in lib/inc/drogon/LocalHostFilter.h.

class LocalHostFilter : public HttpFilter<LocalHostFilter>
{
  public:
    LocalHostFilter()
    {
    }
    virtual void doFilter(const HttpRequestPtr &req,
                          FilterCallback &&fcb,
                          FilterChainCallback &&fccb) override;
};





Add Discussion as Guest

Log in to DocsForge