LibHTTP API Reference

December 26, 2016 ยท View on GitHub

httplib_cry( ctx, conn, fmt, ... );

Parameters

ParameterTypeDescription
ctxconst struct httplib_context *The context where the problem occured
connconst struct httplib_connection *The connection on which a problem occured, or NULL for a connection independent error
fmtconst char *Format string without a line return
...variousParameters depending on the format string

Return Value

none

Description

The function httplib_cry() is called when something happens on a connection. The function takes a format string similar to the printf() series of functions with parameters and creates a text string which can then be used for logging. The httplib_cry() function prints the output to the opened error log stream. Log messages can be processed with the log_message() callback function specified in the struct httplib_callbacks structure.

See Also