testing and debugging
This commit is contained in:
parent
5d765958e5
commit
a1ab1339e3
10 changed files with 38 additions and 47 deletions
|
@ -188,7 +188,7 @@ std::string Request::getServerName() const {
|
|||
return FCGX_GetParam(SERVER_NAME, raw.envp);;
|
||||
}
|
||||
|
||||
void Request::printEnvironment(std::ostream& out) {
|
||||
void Request::printEnvironment(std::ostream& out) const {
|
||||
if (!active())
|
||||
throw std::runtime_error("An attempt to print environment of a request in a wrong state");
|
||||
|
||||
|
@ -198,7 +198,7 @@ void Request::printEnvironment(std::ostream& out) {
|
|||
}
|
||||
}
|
||||
|
||||
void Request::printEnvironment(nlohmann::json& out) {
|
||||
void Request::printEnvironment(nlohmann::json& out) const {
|
||||
if (!out.is_object())
|
||||
return;
|
||||
|
||||
|
|
|
@ -61,8 +61,8 @@ public:
|
|||
std::string getPath() const;
|
||||
std::string getServerName() const;
|
||||
std::string getAuthorizationToken() const;
|
||||
void printEnvironment(std::ostream& out);
|
||||
void printEnvironment(nlohmann::json& out);
|
||||
void printEnvironment(std::ostream& out) const;
|
||||
void printEnvironment(nlohmann::json& out) const;
|
||||
|
||||
private:
|
||||
OStream getOutputStream();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue