Add Server and Date fields to HTTP header of response.

This commit is contained in:
Chunting Gu
2018-11-05 13:34:18 +08:00
parent 364a37899d
commit e862153657
4 changed files with 31 additions and 14 deletions
+5
View File
@@ -22,6 +22,11 @@ void PrintEndpoints(
std::string EndpointToString(const boost::asio::ip::tcp::endpoint& endpoint);
// Get the timestamp for HTTP Date header field.
// E.g., Wed, 21 Oct 2015 07:28:00 GMT
// See: https://tools.ietf.org/html/rfc7231#section-7.1.1.2
std::string GetHttpDateTimestamp();
} // namespace webcc
#endif // WEBCC_UTILITY_H_