HttpConfiguration Class

 

Represents a configuration of HttpServer instances.

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


public class HttpConfiguration : IDisposable

NameDescription
System_CAPS_pubmethodHttpConfiguration()

Initializes a new instance of the HttpConfiguration class.

System_CAPS_pubmethodHttpConfiguration(HttpRouteCollection)

Initializes a new instance of the HttpConfiguration class with an HTTP route collection.

NameDescription
System_CAPS_pubpropertyDependencyResolver

Gets or sets the dependency resolver associated with thisinstance.

System_CAPS_pubpropertyFilters

Gets the list of filters that apply to all requests served using this HttpConfiguration instance.

System_CAPS_pubpropertyFormatters

Gets the media-type formatters for this instance.

System_CAPS_pubpropertyIncludeErrorDetailPolicy

Gets or sets a value indicating whether error details should be included in error messages.

System_CAPS_pubpropertyInitializer

Gets or sets the action that will perform final initialization of the HttpConfiguration instance before it is used to process requests.

System_CAPS_pubpropertyMessageHandlers

Gets an ordered list of DelegatingHandler instances to be invoked as an HttpRequestMessage travels up the stack and an HttpResponseMessage travels down in stack in return.

System_CAPS_pubpropertyParameterBindingRules

Gets the collection of rules for how parameters should be bound.

System_CAPS_pubpropertyProperties

Gets the properties associated with this instance.

System_CAPS_pubpropertyRoutes

Gets the HttpRouteCollection associated with this HttpConfiguration instance.

System_CAPS_pubpropertyServices

Gets the container of default services associated with this instance.

System_CAPS_pubpropertyVirtualPathRoot

Gets the root virtual path.

NameDescription
System_CAPS_pubmethodDispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources.

System_CAPS_pubmethodEnsureInitialized()

Invoke the Intializer hook. It is considered immutable from this point forward. It's safe to call this multiple times.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubmethodBindParameter(Type, IModelBinder)
System_CAPS_pubmethodEnableCors()

Overloaded. Enables the support for CORS.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethodEnableCors(ICorsPolicyProvider)

Overloaded. Enables the support for CORS.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethodGetCorsEngine()

Gets the ICorsEngine from the HttpConfiguration.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethodGetCorsPolicyProviderFactory()

Gets the ICorsPolicyProviderFactory from the HttpConfiguration.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethodMapHttpAttributeRoutes()

Overloaded. (Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethodMapHttpAttributeRoutes(IDirectRouteProvider)

Overloaded. Maps the attribute-defined routes for the application.(Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethodMapHttpAttributeRoutes(IInlineConstraintResolver)

Overloaded. Maps the attribute-defined routes for the application.(Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethodMapHttpAttributeRoutes(IInlineConstraintResolver, IDirectRouteProvider)

Overloaded. Maps the attribute-defined routes for the application.(Defined by HttpConfigurationExtensions.)

System_CAPS_pubmethodSetCorsEngine(ICorsEngine)

Sets the ICorsEngine on the HttpConfiguration.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethodSetCorsPolicyProviderFactory(ICorsPolicyProviderFactory)

Sets the ICorsPolicyProviderFactory on the HttpConfiguration.(Defined by CorsHttpConfigurationExtensions.)

System_CAPS_pubmethodSuppressHostPrincipal()

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

Return to top
Show: