共用方式為


http_response::set_reason_phrase Method

Sets the reason phrase of the response message. If no reason phrase is set it will default to the standard one corresponding to the status code.

void set_reason_phrase(
   http::reason_phrase reason
) const;

Parameters

  • reason
    The reason phrase to set.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_response Class