http_request.hpp (15ed678014998b3344c07de3a91e6855e6bd509b) | http_request.hpp (2d6cb56b6b47c3fbb0d234ade5c1208edb69ef1f) |
---|---|
1#pragma once 2 3#include "common.hpp" 4#include "sessions.hpp" 5 6#include <boost/asio/io_context.hpp> 7#include <boost/asio/ip/address.hpp> 8#include <boost/beast/http/message.hpp> --- 31 unchanged lines hidden (view full) --- 40 fields(req.base()), body(req.body()) 41 { 42 if (!setUrlInfo()) 43 { 44 ec = std::make_error_code(std::errc::invalid_argument); 45 } 46 } 47 | 1#pragma once 2 3#include "common.hpp" 4#include "sessions.hpp" 5 6#include <boost/asio/io_context.hpp> 7#include <boost/asio/ip/address.hpp> 8#include <boost/beast/http/message.hpp> --- 31 unchanged lines hidden (view full) --- 40 fields(req.base()), body(req.body()) 41 { 42 if (!setUrlInfo()) 43 { 44 ec = std::make_error_code(std::errc::invalid_argument); 45 } 46 } 47 |
48 Request(const Request&) = delete; 49 Request(const Request&&) = delete; | 48 Request(const Request& other) : 49 req(other.req), fields(req.base()), isSecure(other.isSecure), 50 body(req.body()), ioService(other.ioService), 51 ipAddress(other.ipAddress), session(other.session), 52 userRole(other.userRole) 53 { 54 setUrlInfo(); 55 } 56 57 Request(Request&& other) noexcept : 58 req(std::move(other.req)), fields(req.base()), isSecure(other.isSecure), 59 body(req.body()), ioService(other.ioService), 60 ipAddress(std::move(other.ipAddress)), 61 session(std::move(other.session)), userRole(std::move(other.userRole)) 62 { 63 setUrlInfo(); 64 } 65 |
50 Request& operator=(const Request&) = delete; 51 Request& operator=(const Request&&) = delete; 52 ~Request() = default; 53 54 boost::beast::http::verb method() const 55 { 56 return req.method(); 57 } --- 60 unchanged lines hidden --- | 66 Request& operator=(const Request&) = delete; 67 Request& operator=(const Request&&) = delete; 68 ~Request() = default; 69 70 boost::beast::http::verb method() const 71 { 72 return req.method(); 73 } --- 60 unchanged lines hidden --- |