Embedded TCP/IP stack  4.4.0

◆ fnet_http_set_response_content_length()

void fnet_http_set_response_content_length ( fnet_http_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_VERSION_MAJOR is 1), this function may be used to change the default HTTP response content-length.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net