http_response::set_reason_phrase 方法

設定回應訊息的原因片語。 如果原因片語未設定,預設為對應於狀態碼的標準原因片語。

void set_reason_phrase(
   http::reason_phrase reason
) const;

參數

  • reason
    要設定的原因片語。

需求

**標頭:**http_msg.h

**命名空間:**web::http

請參閱

參考

http_response 類別