ExtractHttpHeader Class
Used to extract an HTTP header value from the response and place the value of the header into the WebTestContext.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Microsoft.VisualStudio.TestTools.WebTesting::ExtractionRule
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ExtractHttpHeader
| Name | Description | |
|---|---|---|
![]() | ExtractHttpHeader() | Initializes a new instance of the ExtractHttpHeader class. |
| Name | Description | |
|---|---|---|
![]() | ContextParameterName | Gets or sets the context name of the extracted property.(Inherited from ExtractionRule.) |
![]() | Header | Gets or sets a value representing the name of the header whose value is to be extracted. |
![]() | Required | Gets or sets a value that indicates whether the request fails if the header does not exist. |
![]() | RuleDescription | Obsolete.This method is no longer used. Use the DisplayNameAttribute on the class to set a description for this rule.(Inherited from ExtractionRule.) |
![]() | RuleName | Obsolete.This method is no longer used. Use the DisplayNameAttribute on the class to set a display name for this rule.(Inherited from ExtractionRule.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Extract(Object^, ExtractionEventArgs^) | Extracts the value of an HTTP header from the response and places the value and context parameter name into the WebTestContext.(Overrides ExtractionRule::Extract(Object^, ExtractionEventArgs^).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Consider the following HTTP headers:
Content-Length : 2036
Cache-Control : private
Content-Type : text/html; charset=utf-8
If Header is set to Content-Length, this rule will extract 2036 from the headers.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


