Share via


SPHttpHeaderThrottleClassifier Class

Enables the management of throttling for HTTP requests that include a specified header.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Utilities.SPRequestThrottleClassifier
      Microsoft.SharePoint.Utilities.SPHttpHeaderThrottleClassifier

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public NotInheritable Class SPHttpHeaderThrottleClassifier _
    Inherits SPRequestThrottleClassifier
'Usage
Dim instance As SPHttpHeaderThrottleClassifier
public sealed class SPHttpHeaderThrottleClassifier : SPRequestThrottleClassifier

Remarks

Use objects of this class to configure throttling for requests based on the value of a specified request header or based on the presence of specified request header even if its value is a null reference (Nothing in Visual Basic) or empty. For example, you could throttle requests that have a Referrer header with a certain value, or you could throttle all requests that have a From header that has any value including a null reference (Nothing in Visual Basic) or empty.

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

Reference

SPHttpHeaderThrottleClassifier Members

Microsoft.SharePoint.Utilities Namespace