websDone GoAhead WebServer API GoAhead EMF

Synopsis

Close the connection to the browser when completing a Form request

Prototype

#include "webs.h";

void websDone(webs_t wp, int code);

Parameters

wp Web server handle to the browser connection
code HTTP completion code

Description

The websDone procedure is called by Form procedures when completing processing. websDone closes the browser connection and frees all connection resources. websDone must only be called once per browser connection.

The code parameter is a standard HTTP response code. Some of the more common codes include:

Return Value

None

Example

websDone(wp, 200);

See Also

websWrite