Share via


HttpConfigurationExtensions Class

 

Provides extension methods for the HttpConfiguration class.

Namespace:   System.Web.OData.Extensions
Assembly:  System.Web.OData (in System.Web.OData.dll)

Inheritance Hierarchy

System.Object
  System.Web.OData.Extensions.HttpConfigurationExtensions

Syntax

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static class HttpConfigurationExtensions
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[ExtensionAttribute]
public ref class HttpConfigurationExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
type HttpConfigurationExtensions = class end
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
<ExtensionAttribute>
Public NotInheritable Class HttpConfigurationExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static AddODataQueryFilter(HttpConfiguration)

Enables query support for actions with an IQueryable or IQueryable<T> return type. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit https://go.microsoft.com/fwlink/?LinkId=279712.

System_CAPS_pubmethodSystem_CAPS_static AddODataQueryFilter(HttpConfiguration, IActionFilter)

Enables query support for actions with an IQueryable or IQueryable<T> return type. To avoid processing unexpected or malicious queries, use the validation settings on EnableQueryAttribute to validate incoming queries. For more information, visit https://go.microsoft.com/fwlink/?LinkId=279712.

System_CAPS_pubmethodSystem_CAPS_static EnableAlternateKeys(HttpConfiguration, Boolean)

Sets the Alternate Key support for the Uri parser on the configuration.

System_CAPS_pubmethodSystem_CAPS_static EnableCaseInsensitive(HttpConfiguration, Boolean)

Sets the case insensitive flag for the Uri parser on the configuration. Both metadata and key words are impacted by this flag.

System_CAPS_pubmethodSystem_CAPS_static EnableContinueOnErrorHeader(HttpConfiguration)

Enable the continue-on-error header.

System_CAPS_pubmethodSystem_CAPS_static EnableEnumPrefixFree(HttpConfiguration, Boolean)

Sets the Enum prefix free flag for the Uri parser on the configuration.

System_CAPS_pubmethodSystem_CAPS_static EnableUnqualifiedNameCall(HttpConfiguration, Boolean)

Sets the un-qualified function and action name call flag for the Uri parser on the configuration.

System_CAPS_pubmethodSystem_CAPS_static GetETagHandler(HttpConfiguration)

Gets the IETagHandler from the configuration.

System_CAPS_pubmethodSystem_CAPS_static GetTimeZoneInfo(HttpConfiguration)

Gets the TimeZoneInfo from the configuration.

System_CAPS_pubmethodSystem_CAPS_static MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel)

Maps the specified OData route and the OData route attributes.

System_CAPS_pubmethodSystem_CAPS_static MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, HttpMessageHandler)

Maps the specified OData route and the OData route attributes. When the defaultHandler is non-null, it will map it as the default handler for the route.

System_CAPS_pubmethodSystem_CAPS_static MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, IODataPathHandler, IEnumerable<IODataRoutingConvention>)

Maps the specified OData route.

System_CAPS_pubmethodSystem_CAPS_static MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, IODataPathHandler, IEnumerable<IODataRoutingConvention>, HttpMessageHandler)

Maps the specified OData route. When the defaultHandler is non-null, it will map it as the handler for the route.

System_CAPS_pubmethodSystem_CAPS_static MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, IODataPathHandler, IEnumerable<IODataRoutingConvention>, ODataBatchHandler)

Maps the specified OData route. When the batchHandler is non-null, it will create a '$batch' endpoint to handle the batch requests.

System_CAPS_pubmethodSystem_CAPS_static MapODataServiceRoute(HttpConfiguration, String, String, IEdmModel, ODataBatchHandler)

Maps the specified OData route and the OData route attributes. When the batchHandler is non-null, it will create a '$batch' endpoint to handle the batch requests.

System_CAPS_pubmethodSystem_CAPS_static SetETagHandler(HttpConfiguration, IETagHandler)

Sets the IETagHandler on the configuration.

System_CAPS_pubmethodSystem_CAPS_static SetTimeZoneInfo(HttpConfiguration, TimeZoneInfo)

Sets the TimeZoneInfo on the configuration.

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

System.Web.OData.Extensions Namespace

Return to top