Class
HTTPHeaderItem

Represents a single HTTP header

Definition

Namespace:Fiddler

Assembly:FiddlerCore.dll

Syntax:

cs-api-definition
public class HTTPHeaderItem : ICloneable

Inheritance: objectHTTPHeaderItem

Implements: ICloneable

Inherited Members object.GetType()object.MemberwiseClone()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()

Constructors

HTTPHeaderItem(string, string)

Creates a new HTTP Header item. WARNING: Doesn't do any trimming or validation on the name.

Declaration

cs-api-definition
public HTTPHeaderItem(string sName, string sValue)

Parameters

sName

string

Header name

sValue

string

Header value

HTTPHeaderItem(string, string, bool)

Creates a new HTTP Header item. WARNING: Doesn't do any trimming or validation on the name.

Declaration

cs-api-definition
public HTTPHeaderItem(string sName, string sValue, bool bSensitive)

Parameters

sName

string

Header name

sValue

string

Header value

bSensitive

bool

HTTP2 specific - does the header contain sensitive information

Fields

Name

The name of the HTTP header

Declaration

cs-api-definition
[CodeDescription("String name of the HTTP header.")]
public string Name

Field Value

string

Value

The value of the HTTP header

Declaration

cs-api-definition
[CodeDescription("String value of the HTTP header.")]
public string Value

Field Value

string

Properties

Sensitive

HTTP2 specific - whether the header contains sensitive information

Declaration

cs-api-definition
public bool Sensitive { get; set; }

Property Value

bool

Methods

Clone()

Clones a single HTTP header and returns the clone cast to an object

Declaration

cs-api-definition
public object Clone()

Returns

object

HTTPHeader Name: Value pair, cast to an object

Implements ICloneable.Clone()

ToString()

Return a string of the form "NAME: VALUE"

Declaration

cs-api-definition
public override string ToString()

Returns

string

"NAME: VALUE" Header string

Overrides object.ToString()