Skip to content

Commit

Permalink
Pull request 125: Improve conditionals
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 0d66b13
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Tue Nov 5 14:28:12 2024 +0300

    httphdr: add etag, fix range
  • Loading branch information
EugeneOne1 committed Nov 5, 2024
1 parent 0e55d3f commit e575c2e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion httphdr/httphdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const (
//
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#conditionals.
const (
ETag = "ETag"
IfMatch = "If-Match"
IfModifiedSince = "If-Modified-Since"
IfNoneMatch = "If-None-Match"
IfRange = "If-Range"
IfUnmodifiedSince = "If-Unmodified-Since"
LastModified = "Last-Modified"
Vary = "Vary"
Expand Down Expand Up @@ -97,6 +97,13 @@ const (
Forwarded = "Forwarded"
)

// Common standard headers for range requests.
//
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#range_requests.
const (
IfRange = "If-Range"
)

// Common standard headers for redirects.
//
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#redirects
Expand Down

0 comments on commit e575c2e

Please sign in to comment.