nn::http::Connection::GetStatusCode Member Functionnn::Result GetStatusCode( s32 * pStatusCodeCourier ) const; nn::Result GetStatusCode( s32 * pStatusCodeCourier, const nn::fnd::TimeSpan & timeout ) const;
GetStatusCode(s32 *)
|
Gets the status code for the HTTP response that was received. |
GetStatusCode(s32 *, const nn::fnd::TimeSpan &)
|
This version of GetStatusCode has a timeout. |
GetStatusCode(s32 *)This function blocks until the header is completely received. See the description of GetHeaderField for more details about this specification.
Note: Unlike the version of GetStatusCode that includes a timeout, this function does not time out. In other words, control will not return from this function until processing has ended. In environments where communications are slow you can expect a long time to pass before processing ends and control returns from this function.
GetStatusCode(s32 *, const nn::fnd::TimeSpan &)Other than enabling the user to specify a timeout, this version functions identically to GetStatusCode. For feature details, see the function reference for the version without a timeout. Returns ResultTimeout if no HTTP response header has been fully received within the timeout period. If ResultTimeout is returned, the connection is automatically canceled. (In other words, the function internally implements Cancel.)
CONFIDENTIAL