Embedded TCP/IP stack  4.7.0

◆ fnet_http_srv_set_response_content_length()

void fnet_http_srv_set_response_content_length ( fnet_http_srv_session_t  session,
fnet_size_t  content_length 
)

Sets content length in HTTP response header.

Parameters
sessionHTTP session handle.
content_lengthHTTP Response Content length.

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 content-length.


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