共用方式為


http_response::http_response 建構函式

建構空白狀態碼、沒有標題且沒有主體的回應。

http_response();

http_response(
   http::status_code code
);

http_response(
   const http_response &response
);

參數

  • code
    要用於回應的 HTTP 狀態碼。

  • response
    複製來源的 http_response。

傳回值

新的 HTTP 回應。

需求

**標頭:**http_msg.h

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

請參閱

參考

http_response 類別