Defines an implementation of an HttpMessageHandler which dispatches an incoming HttpRequestMessage and creates an HttpResponseMessage as a result.
Inheritance Hierarchy
System.Object
  HttpMessageHandler
    DelegatingHandler
      System.Web.Http.HttpServer
        System.Web.Http.SelfHost.HttpSelfHostServer
Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Class HttpServer _
    Inherits DelegatingHandler
'Usage
Dim instance As HttpServer
public class HttpServer : DelegatingHandler
public ref class HttpServer : public DelegatingHandler
type HttpServer =  
    class
        inherit DelegatingHandler
    end
public class HttpServer extends DelegatingHandler
The HttpServer type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | HttpServer() | Initializes a new instance of the HttpServer class, using the default configuration and dispatcher. | 
| .jpeg) | HttpServer(HttpMessageHandler) | Initializes a new instance of the HttpServer class with a specified dispatcher. | 
| .jpeg) | HttpServer(HttpConfiguration) | Initializes a new instance of the HttpServer class with a specified configuration. | 
| .jpeg) | HttpServer(HttpConfiguration, HttpMessageHandler) | Initializes a new instance of the HttpServer class with a specified configuration and dispatcher. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | Configuration | Gets the HttpConfiguration used to configure this instance. | 
| .jpeg) | Dispatcher | Gets the HTTP dispatcher that handles incoming requests. | 
| .jpeg) | InnerHandler | (Inherited from DelegatingHandler.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Dispose() | (Inherited from HttpMessageHandler.) | 
| .jpeg) | Dispose(Boolean) | Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources. (Overrides DelegatingHandlerDispose(Boolean).) | 
| .jpeg) | Equals | (Inherited from Object.) | 
| .jpeg) | Finalize | (Inherited from Object.) | 
| .jpeg) | GetHashCode | (Inherited from Object.) | 
| .jpeg) | GetType | (Inherited from Object.) | 
| .jpeg) | Initialize | Prepares the server for operation. | 
| .jpeg) | MemberwiseClone | (Inherited from Object.) | 
| .jpeg) | SendAsync | Dispatches an incoming HttpRequestMessage. (Overrides DelegatingHandlerSendAsync(HttpRequestMessage, CancellationToken).) | 
| .jpeg) | ToString | (Inherited from Object.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.