Daraja HTTP Framework 3.5.0-SNAPSHOT
HTTP server framework for Object Pascal
Loading...
Searching...
No Matches
djHTTPConstants.pas File Reference

Variables

const HTTP_BAD_REQUEST = 400
const HTTP_INTERNAL_SERVER_ERROR = 500
const HTTP_NOT_HANDLED = -1
 Sentinel ResponseNo meaning "no handler has produced a response yet".
const HTTP_OK = 200

Variable Documentation

◆ HTTP_BAD_REQUEST

const HTTP_BAD_REQUEST = 400

◆ HTTP_INTERNAL_SERVER_ERROR

const HTTP_INTERNAL_SERVER_ERROR = 500

◆ HTTP_NOT_HANDLED

const HTTP_NOT_HANDLED = -1

Sentinel ResponseNo meaning "no handler has produced a response yet".

This is not an Indy value: TdjHTTPConnector.OnCommand sets Response.ResponseNo to it before dispatching a request, so that TdjHandlerList and TdjDefaultHandler can tell whether an earlier handler already handled the request.

◆ HTTP_OK

const HTTP_OK = 200