Compartir a través de


http_response::http_response Constructor

Constructs a response with an empty status code, no headers, and no body.

http_response();

http_response(
   http::status_code code
);

http_response(
   const http_response &response
);

Parameters

  • code
    HTTP status code to use in response.

  • response
    The http_response to copy from.

Return Value

A new HTTP response.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_response Class