libcex
1.0.0
Modern C++11 embedded webserver library
include
cex
basicauth.hpp
Go to the documentation of this file.
1
//*************************************************************************
2
// File basicauth.hpp
3
// Date 10.09.2018 - #1
4
// Copyright (c) 2018-2018 by Patrick Fial
5
//-------------------------------------------------------------------------
6
// HTTP basic auth functions
7
// Middleware that sets username/password from HTTP basic authentication header
8
//*************************************************************************
9
10
#ifndef __BASICAUTH_HPP__
11
#define __BASICAUTH_HPP__
12
23
//***************************************************************************
24
// includes
25
//***************************************************************************
26
27
#include <string>
28
#include <
core.hpp
>
29
30
namespace
cex
31
{
32
33
//**************************************************************************
34
// Middlewares
35
//***************************************************************************
36
// basicAuth
37
//***************************************************************************
38
43
MiddlewareFunction
basicAuth();
44
45
//***************************************************************************
46
}
// namespace cex
47
48
#endif // __BASICAUTH_HPP_
cex::MiddlewareFunction
std::function< void(Request *req, Response *res, std::function< void()> next)> MiddlewareFunction
A function which is called by a standard Middleware when an incoming request matches.
Definition:
core.hpp:108
core.hpp
libcex core classes and functions
Generated by
1.8.16