Export (0) Print
Expand All

HttpServer Class

Defines an implementation of an HttpMessageHandler which dispatches an incoming HttpRequestMessage and creates an HttpResponseMessage as a result.

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)

public class HttpServer : DelegatingHandler

The HttpServer type exposes the following members.

  NameDescription
Public methodHttpServer()Initializes a new instance of the HttpServer class, using the default configuration and dispatcher.
Public methodHttpServer(HttpMessageHandler) Initializes a new instance of the HttpServer class with a specified dispatcher.
Public methodHttpServer(HttpConfiguration)Initializes a new instance of the HttpServer class with a specified configuration.
Public methodHttpServer(HttpConfiguration, HttpMessageHandler)Initializes a new instance of the HttpServer class with a specified configuration and dispatcher.
Top

  NameDescription
Public propertyConfigurationGets the HttpConfiguration used to configure this instance.
Public propertyDispatcherGets the HTTP dispatcher that handles incoming requests.
Public propertyInnerHandler (Inherited from DelegatingHandler.)
Top

  NameDescription
Public methodDispose() (Inherited from HttpMessageHandler.)
Protected methodDispose(Boolean)Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources. (Overrides DelegatingHandlerDispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodInitializePrepares the server for operation.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSendAsyncDispatches an incoming HttpRequestMessage. (Overrides DelegatingHandlerSendAsync(HttpRequestMessage, CancellationToken).)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft