1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-23 00:33:44 +00:00

The environment never changes so these functions can be pure.

This commit is contained in:
King_DuckZ 2017-04-05 09:29:02 +01:00
parent 384417581f
commit 5ed8e782aa

View file

@ -1,6 +1,7 @@
#pragma once
#include "split_get_vars.hpp"
#include "duckhandy/compatibility.h"
#include <vector>
#include <string>
#include <boost/utility/string_ref.hpp>
@ -23,10 +24,10 @@ namespace tawashi {
const std::string& auth_type() const;
std::size_t content_length() const;
const std::string& content_type() const;
boost::optional<VersionInfo> gateway_interface() const;
boost::optional<VersionInfo> gateway_interface() const a_pure;
const std::string& path_info() const;
const std::string& path_translated() const;
KeyValueList query_string() const;
KeyValueList query_string() const a_pure;
const std::string& remote_addr() const;
const std::string& remote_host() const;
const std::string& remote_ident() const;
@ -34,8 +35,8 @@ namespace tawashi {
const std::string& request_method() const;
const std::string& script_name() const;
const std::string& server_name() const;
uint16_t server_port() const;
boost::optional<VersionInfo> server_protocol() const;
uint16_t server_port() const a_pure;
boost::optional<VersionInfo> server_protocol() const a_pure;
const std::string& server_software() const;
std::ostream& print_all (std::ostream& parStream, const char* parNewline) const;