HttpServer Class
Defines an implementation of an HttpMessageHandler which dispatches an incoming HttpRequestMessage and creates an HttpResponseMessage as a result.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Net.Http.HttpMessageHandler
System.Net.Http.DelegatingHandler
System.Web.Http.HttpServer
System.Web.Http.SelfHost.HttpSelfHostServer
Syntax
public class HttpServer : DelegatingHandler
public ref class HttpServer : DelegatingHandler
type HttpServer =
class
inherit DelegatingHandler
end
Public Class HttpServer
Inherits DelegatingHandler
Constructors
Name | Description | |
---|---|---|
HttpServer() | Initializes a new instance of the HttpServer class, using the default configuration and dispatcher. |
|
HttpServer(HttpConfiguration) | Initializes a new instance of the HttpServer class with a specified configuration. |
|
HttpServer(HttpConfiguration, HttpMessageHandler) | Initializes a new instance of the HttpServer class with a specified configuration and dispatcher. |
|
HttpServer(HttpMessageHandler) | Initializes a new instance of the HttpServer class with a specified dispatcher. |
Properties
Name | Description | |
---|---|---|
Configuration | Gets the HttpConfiguration used to configure this instance. |
|
Dispatcher | Gets the HTTP dispatcher that handles incoming requests. |
|
InnerHandler | (Inherited from DelegatingHandler.) |
Methods
Name | Description | |
---|---|---|
Dispose() | (Inherited from HttpMessageHandler.) |
|
Dispose(Boolean) | Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources.(Overrides DelegatingHandler.Dispose(Boolean).) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Initialize() | Prepares the server for operation. |
|
MemberwiseClone() | (Inherited from Object.) |
|
SendAsync(HttpRequestMessage, CancellationToken) | Dispatches an incoming HttpRequestMessage.(Overrides DelegatingHandler.SendAsync(HttpRequestMessage, CancellationToken).) |
|
ToString() | (Inherited from Object.) |
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.
See Also
Return to top