Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
auth_strategy.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "headers.h"
4 #include "response.h"
5 
13 class AuthStrategy {
14 public:
18  virtual ~AuthStrategy() = default;
19 
28  virtual std::string getSerializedValue(Headers * headers) = 0;
29 
39  virtual bool checkHeadersToParse(Headers * headers) = 0;
40 
47  virtual void serializeAndSetValueToResponse(std::string & value) = 0;
48 };
virtual bool checkHeadersToParse(Headers *headers)=0
Interface for auth strategy template.
Definition: auth_strategy.h:13
virtual std::string getSerializedValue(Headers *headers)=0
virtual ~AuthStrategy()=default
virtual void serializeAndSetValueToResponse(std::string &value)=0
wrapper class for http headers
Definition: headers.h:11