File tree Expand file tree Collapse file tree
include/boost/http_proto/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -332,12 +332,14 @@ option_pair x_content_type_options();
332332option_pair content_security_policy (const helmet::csp_policy& sp);
333333
334334/* * Return HSTS configuration for the host.
335- @param include_subdomains either include_domains or no_subdomains
336- @param preload either preload or no_preload
337- @note use the hsts namespace to set those function values.
338- @return the option_pair to pass to the helmet.
335+ @param age Maximum age in seconds for HSTS enforcement.
336+ @param include_subdomains either hsts::include_subdomains or hsts::no_subdomains
337+ @param preload either hsts::preload or hsts::no_preload
338+ @note Use constants from the hsts namespace.
339+ @return Header name and value pair.
339340*/
340- option_pair strict_transport_security (std::size_t age,
341+ option_pair strict_transport_security (
342+ std::size_t age,
341343 bool include_subdomains = hsts::include_subdomains,
342344 bool preload = hsts::no_preload);
343345
You can’t perform that action at this time.
0 commit comments