http_request.hpp (47f2934cc509e420e5617a96158e76829746b835) | http_request.hpp (1873a04f43bb414408d1da9a5a775c05474603d2) |
---|---|
1#pragma once 2 3#include "common.hpp" 4#include "http_body.hpp" 5#include "sessions.hpp" 6 7#include <boost/asio/io_context.hpp> 8#include <boost/asio/ip/address.hpp> --- 66 unchanged lines hidden (view full) --- 75 session = nullptr; 76 userRole = ""; 77 } 78 79 boost::beast::http::verb method() const 80 { 81 return req.method(); 82 } | 1#pragma once 2 3#include "common.hpp" 4#include "http_body.hpp" 5#include "sessions.hpp" 6 7#include <boost/asio/io_context.hpp> 8#include <boost/asio/ip/address.hpp> --- 66 unchanged lines hidden (view full) --- 75 session = nullptr; 76 userRole = ""; 77 } 78 79 boost::beast::http::verb method() const 80 { 81 return req.method(); 82 } |
83 void method(boost::beast::http::verb verb) 84 { 85 return req.method(verb); 86 } |
|
83 84 std::string_view getHeaderValue(std::string_view key) const 85 { 86 return req[key]; 87 } 88 89 std::string_view getHeaderValue(boost::beast::http::field key) const 90 { 91 return req[key]; 92 } 93 | 87 88 std::string_view getHeaderValue(std::string_view key) const 89 { 90 return req[key]; 91 } 92 93 std::string_view getHeaderValue(boost::beast::http::field key) const 94 { 95 return req[key]; 96 } 97 |
98 void clearHeader(boost::beast::http::field key) 99 { 100 req.erase(key); 101 } 102 |
|
94 std::string_view methodString() const 95 { 96 return req.method_string(); 97 } 98 99 std::string_view target() const 100 { 101 return req.target(); --- 53 unchanged lines hidden --- | 103 std::string_view methodString() const 104 { 105 return req.method_string(); 106 } 107 108 std::string_view target() const 109 { 110 return req.target(); --- 53 unchanged lines hidden --- |