Implements a server that enables the application to send and receive files using the Hypertext Transfer Protocol.
For a list of all members of this type, see HttpServer Members.
System.Object
SocketTools.HttpServer
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The SocketTools.HttpServer class provides an interface for implementing an embedded, lightweight server that can be used to provide access to documents and other resources using the Hypertext Transfer Protocol. The server can accept connections from any standard web browser, third-party applications or programs developed using the SocketTools.HttpClient class.
The application specifies an initial server configuration and then responds to events that are generated when the client sends a request to the server. An application may implement only minimal handlers for most events, in which case the default actions are performed for most standard HTTP commands. However, an application may also use the event mechanism to filter specific commands or to extend the protocol by providing custom implementations of existing commands or add entirely new commands.
The server includes support for CGI scripting, virtual hosting, client authentication and the creation of virtual directories and files. The server also supports secure connections using TLS 1.2. Secure connections require that a valid server certificate be installed on the system.
Namespace: SocketTools
Assembly: SocketTools.HttpServer (in SocketTools.HttpServer.dll)