Class IfHeaderCondition
Represents a single condition for an HTTP If
header
Inherited Members
Namespace:FubarDev.WebDavServer.Model.Headers
Assembly:FubarDev.WebDavServer.dll
Syntax
public class IfHeaderCondition
Properties
| Improve this Doc View SourceETag
Gets the entity tag to validate with
Declaration
public EntityTag? ETag { get; }
Property Value
Type | Description |
---|---|
Nullable<EntityTag> |
Not
Gets a value indicating whether the result should be negated
Declaration
public bool Not { get; }
Property Value
Type | Description |
---|---|
Boolean |
StateToken
Gets the state token to validate with
Declaration
[CanBeNull]
public Uri StateToken { get; }
Property Value
Type | Description |
---|---|
Uri |
Methods
| Improve this Doc View SourceIsMatch(Nullable<EntityTag>, IReadOnlyCollection<Uri>)
Validates if this condition matches the passed entity tag and/or state tokens
Declaration
public bool IsMatch(EntityTag? etag, IReadOnlyCollection<Uri> stateTokens)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EntityTag> | etag | The entity tag |
IReadOnlyCollection<Uri> | stateTokens | The state tokens |
Returns
Type | Description |
---|---|
Boolean | true when this condition matches |