Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpServer Constructor

 

Namespace:   System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

NameDescription
System_CAPS_pubmethodHttpServer()

Initializes a new instance of the HttpServer class, using the default configuration and dispatcher.

System_CAPS_pubmethodHttpServer(HttpConfiguration^)

Initializes a new instance of the HttpServer class with a specified configuration.

System_CAPS_pubmethodHttpServer(HttpConfiguration^, HttpMessageHandler^)

Initializes a new instance of the HttpServer class with a specified configuration and dispatcher.

System_CAPS_pubmethodHttpServer(HttpMessageHandler^)

Initializes a new instance of the HttpServer class with a specified dispatcher.

Return to top

HttpServer Constructor ()

Initializes a new instance of the HttpServer class, using the default configuration and dispatcher.

public:
HttpServer()
Return to top

HttpServer Constructor (HttpConfiguration^)

Initializes a new instance of the HttpServer class with a specified configuration.

public:
HttpServer(
	HttpConfiguration^ configuration
)

Parameters

configuration
Type: System.Web.Http::HttpConfiguration^

The HttpConfiguration used to configure this instance.

Return to top

HttpServer Constructor (HttpConfiguration^, HttpMessageHandler^)

Initializes a new instance of the HttpServer class with a specified configuration and dispatcher.

public:
HttpServer(
	HttpConfiguration^ configuration,
	HttpMessageHandler^ dispatcher
)

Parameters

configuration
Type: System.Web.Http::HttpConfiguration^

The HttpConfiguration used to configure this instance.

dispatcher
Type: System.Net.Http::HttpMessageHandler^

The HTTP dispatcher that will handle incoming requests.

Return to top

HttpServer Constructor (HttpMessageHandler^)

Initializes a new instance of the HttpServer class with a specified dispatcher.

public:
HttpServer(
	HttpMessageHandler^ dispatcher
)

Parameters

dispatcher
Type: System.Net.Http::HttpMessageHandler^

The HTTP dispatcher that will handle incoming requests.

Return to top
Show: