Class IfMatchHeader
Class that represents the HTTP If-Match
header
Inherited Members
Namespace:FubarDev.WebDavServer.Model.Headers
Assembly:FubarDev.WebDavServer.dll
Syntax
public class IfMatchHeader
Constructors
| Improve this Doc View SourceIfMatchHeader()
Initializes a new instance of the IfMatchHeader class.
Declaration
public IfMatchHeader()
IfMatchHeader(IEnumerable<EntityTag>, EntityTagComparer)
Initializes a new instance of the IfMatchHeader class.
Declaration
public IfMatchHeader([NotNull] IEnumerable<EntityTag> etags, EntityTagComparer etagComparer)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<EntityTag> | etags | The entity tags to match |
EntityTagComparer | etagComparer | The entity comparer to use |
Methods
| Improve this Doc View SourceIsMatch(Nullable<EntityTag>)
Returns a value that indicates whether the etag is specified in the If-Match
header
Declaration
public bool IsMatch(EntityTag? etag)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EntityTag> | etag | The entity tag to search for |
Returns
Type | Description |
---|---|
Boolean | true when the etag was found |
Parse(IEnumerable<String>)
Parses the header string to get a new instance of the IfMatchHeader class
Declaration
[NotNull]
public static IfMatchHeader Parse([NotNull, ItemNotNull] IEnumerable<string> s)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | s | The header values to parse |
Returns
Type | Description |
---|---|
IfMatchHeader | The new instance of the IfMatchHeader class |
Parse(IEnumerable<String>, EntityTagComparer)
Parses the header string to get a new instance of the IfMatchHeader class
Declaration
[NotNull]
public static IfMatchHeader Parse([NotNull, ItemNotNull] IEnumerable<string> s, EntityTagComparer etagComparer)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | s | The header values to parse |
EntityTagComparer | etagComparer | The entity tag comparer used for the IsMatch(Nullable<EntityTag>) function |
Returns
Type | Description |
---|---|
IfMatchHeader | The new instance of the IfMatchHeader class |
Parse(String)
Parses the header string to get a new instance of the IfMatchHeader class
Declaration
[NotNull]
public static IfMatchHeader Parse([CanBeNull] string s)
Parameters
Type | Name | Description |
---|---|---|
String | s | The header string to parse |
Returns
Type | Description |
---|---|
IfMatchHeader | The new instance of the IfMatchHeader class |
Parse(String, EntityTagComparer)
Parses the header string to get a new instance of the IfMatchHeader class
Declaration
[NotNull]
public static IfMatchHeader Parse([CanBeNull] string s, EntityTagComparer etagComparer)
Parameters
Type | Name | Description |
---|---|---|
String | s | The header string to parse |
EntityTagComparer | etagComparer | The entity tag comparer used for the IsMatch(Nullable<EntityTag>) function |
Returns
Type | Description |
---|---|
IfMatchHeader | The new instance of the IfMatchHeader class |