websGetRequestBytes GoAhead WebServer API GoAhead EMF

Synopsis

Return the size of the web page being returned to the browser

Prototype

#include "webs.h"

int websGetRequestBytes(webs_t wp);

Parameters

wp Web server connection handle.

Description

The websGetRequestBytes procedure returns the size of the current web page being returned to the browser in bytes. This is used by handlers that need to use background copy handlers. Use websSetRequestBytes to define the byte count.

Return Value

Integer containing the size of the web page in bytes. Returns zero if the size has not been defined

Example

bytes = websGetRequestBytes(wp);

See Also

websSetRequestBytes, websSetRequestWritten