Embedded TCP/IP stack  4.7.0

◆ fnet_http_srv_set_response_status_code()

void fnet_http_srv_set_response_status_code ( fnet_http_srv_session_t  session,
fnet_http_srv_status_code_t  status_code 
)

Sets status code in HTTP response status-line.

Parameters
sessionHTTP session handle.
status_codeHTTP Response Status-Code.

If the HTTP server works according to HTTP/1.x (FNET_CFG_HTTP_SRV_VERSION_MAJOR is 1), this function may be used to change the default HTTP response status-code.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net