Http Responses
Possible types of response you can return to the customer
name
parameters
return-type
description
Response
(int, std::string)
Response
Create a response with a code and body
Response
(std::string)
Response
Create a response status with code 200
Response
(int)
Response
Create a response with a code
Response
(std::string, std::string)
Response
Create response passing content-type and body
Response
(int, std::string, std::string)
Response
Create response passing code, content-type and body
add_header
(std::string, std::string)
void
Add a new header to the response
get_header_value
(const std::string& key)
const std::string&
get header to the response
set_header
(std::string, std::string)
void
replace header to the response
redirect
(const std::string&)
void
redirect client to endpoint
Last updated