Class LockableHeader
Represents an HTTP header with a name and value that can be locked to prevent modification.
public class LockableHeader
- Inheritance
-
LockableHeader
- Inherited Members
Constructors
LockableHeader(string, string)
Initializes a new instance of the LockableHeader class with the specified name and value.
public LockableHeader(string name, string value)
Parameters
Properties
IsLocked
Gets or sets a value indicating whether the header is locked and cannot be modified.
public bool IsLocked { get; }
Property Value
Name
Gets or sets the name of the HTTP header.
public string Name { get; set; }
Property Value
Exceptions
- InvalidOperationException
Thrown when attempting to set the value while the header is locked.
Value
Gets or sets the value of the HTTP header.
public string Value { get; set; }
Property Value
Exceptions
- InvalidOperationException
Thrown when attempting to set the value while the header is locked.