#include <http.h>
Inheritance diagram for PHTTPServer:
When acting as a server, a descendant class would be created to override at least the #HandleOpenMailbox()#, #HandleSendMessage()# and #HandleDeleteMessage()# functions. Other functions may be overridden for further enhancement to the sockets capabilities, but these will give a basic POP3 server functionality.
The server socket thread would continuously call the #ProcessMessage()# function until it returns FALSE. This will then call the appropriate virtual function on parsing the POP3 protocol.
|
Create a TCP/IP HTTP protocol socket channel. The form with the single |
|
|
|
Reimplemented from PChannel. |
|
Get the connection info for this connection. |
|
Get the name of the server.
|
|
Get the name space being used by the HTTP server socket.
|
|
Write an error response for the specified code.
Depending on the
|
|
Handle a GET command from a client. The default implementation looks up the URL in the name space declared by the PHTTPSpace# class tree and despatches to the PHTTPResource# object contained therein.
|
|
Handle a HEAD command from a client. The default implemetation looks up the URL in the name space declared by the PHTTPSpace# class tree and despatches to the PHTTPResource# object contained therein.
|
|
Handle a POST command from a client. The default implementation looks up the URL in the name space declared by the PHTTPSpace# class tree and despatches to the PHTTPResource# object contained therein.
|
|
Handle a proxy command request from a client. This will only get called if the request was not for this particular server. If it was a proxy request for this server (host and port number) then the appropriate #OnGET()#, #OnHEAD()# or #OnPOST()# command is called. The default implementation returns OnError(BadGateway).
|
|
Handle an unknown command.
|
|
Process commands, dispatching to the appropriate virtual function. This is used when the socket is acting as a server.
|
|
Read the entity body associated with a HTTP request, and close the socket if not a persistant connection.
|
|
Set the default mime info |
|
Use a new URL name space for this HTTP socket.
|
|
Write a command reply back to the client, and construct some of the outgoing MIME fields. The MIME fields are not sent.
The
If If the version of the request is less than 1.0, then this function does nothing.
|
|
|
|
|
|
|
|
|