You ca either use the [HttpListener] directly or build a more complete webserver by using [HttpServer].
Classes
| Class | Description | |
|---|---|---|
| ClientAcceptedEventArgs |
Invoked when a client have been accepted by the HttpListener | |
| ConsoleLogWriter |
This class writes to the console. It colors the output depending on the logprio and includes a 3-level stacktrace (in debug mode)
| |
| ContentType |
Lists content type mime types.
| |
| ContentTypes |
A list of content types
| |
| DisconnectedEventArgs |
A IHttpClientContext have been disconnected.
| |
| HttpClientContextImp |
Contains a connection to a browser/client.
| |
| HttpContextFactory |
Used to create and reuse contexts.
| |
| HttpFile |
Container class for posted files
| |
| HttpForm | Container for posted form data | |
| HttpHelper |
Generic helper functions for HTTP
| |
| HttpInput |
Contains some kind of input from the browser/client.
can be QueryString, form data or any other request body content.
| |
| HttpInputItem |
represents a HTTP input item. Each item can have multiple sub items, a sub item
is made in a HTML form by using square brackets
| |
| HttpListener |
New implementation of the HTTP listener.
| |
| HttpListenerBase |
Contains a listener that doesn't do anything with the connections.
| |
| HttpParam |
Returns item either from a form or a query string (checks them in that order)
| |
| HttpRequest |
Contains server side HTTP request information.
| |
| HttpResponse |
Response that is sent back to the web browser / client.
| |
| HttpServer |
A complete HTTP server, you need to add a module to it to be able to handle incoming requests.
| |
| Method |
Contains all HTTP Methods (according to the HTTP 1.1 specification)
See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html | |
| Methods | Obsolete.
Contains all HTTP Methods (according to the HTTP 1.1 specification)
See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html | |
| NullLogWriter |
Default log writer, writes everything to null (nowhere).
| |
| RequestCookie |
cookie sent by the client/browser
| |
| RequestCookies |
This class is created as a wrapper, since there are two different cookie types in .Net (Cookie and HttpCookie).
The framework might switch class in the future and we dont want to have to replace all instances
| |
| RequestEventArgs | ||
| RequestParserFactory |
Creates request parsers when needed.
| |
| ResponseCookie |
cookie being sent back to the browser.
| |
| ResponseCookies |
Cookies that should be set.
|
Interfaces
| Interface | Description | |
|---|---|---|
| IHttpClientContext |
Contains a connection to a browser/client.
| |
| IHttpContextFactory |
Used to create IHttpClientContextes.
| |
| IHttpContextHandler |
Class that receives Requests from a IHttpClientContext.
| |
| IHttpInput |
Base class for request data containers
| |
| IHttpRequest |
Contains server side HTTP request information.
| |
| IHttpRequestParser |
Event driven parser used to parse incoming HTTP requests.
| |
| IHttpResponse |
Response that is sent back to the web browser / client.
A response can be sent if different ways. The easiest one is
to just fill the Body stream with content, everything else
will then be taken care of by the framework. The default content-type
is text/html, you should change it if you send anything else.
The second and slighty more complex way is to send the response
as parts. Start with sending the header using the SendHeaders method and
then you can send the body using SendBody method, but do not forget
to set ContentType and ContentLength before doing so.
| |
| ILogWriter |
Interface used to write to log files.
| |
| IRequestParserFactory |
Creates request parsers when needed.
|
Delegates
| Delegate | Description | |
|---|---|---|
| ExceptionHandler |
We dont want to let the server to die due to exceptions thrown in worker threads.
therefore we use this delegate to give you a change to handle uncaught exceptions.
| |
| ProcessRequestHandler |
Method used to process a queued request
| |
| RealmHandler |
Delegate used to find a realm/domain.
|
Enumerations
| Enumeration | Description | |
|---|---|---|
| ConnectionType |
Type of HTTP connection
| |
| LogPrio |
Priority for log entries
| |
| RequestParserState |
Current state in the parsing.
|