ocket8888 commented on a change in pull request #4885:
URL: https://github.com/apache/trafficcontrol/pull/4885#discussion_r469387357
##########
File path: lib/go-rfc/http.go
##########
@@ -21,27 +21,109 @@ package rfc
import (
"net/http"
+ "strconv"
"strings"
"time"
"github.com/apache/trafficcontrol/lib/go-util"
)
+// These are the names of HTTP Headers, for convenience and so that typos are
+// caught at compile-time.
+const (
+ AcceptEncoding = "Accept-Encoding" // RFC7231§5.3.4
+ CacheControl = "Cache-Control" // RFC7234§5.2
+ ContentDisposition = "Content-Disposition" // RFC6266
+ ContentEncoding = "Content-Encoding" // RFC7231§3.1.2.2
+ ContentEncoding = "Content-Encoding" // RFC7231§3.1.2.2
+ ContentType = "Content-Type" // RFC7231§3.1.1.5
Review comment:
probably a bad rebase
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]