Skip to content

Commit

Permalink
feat(header): 添加一些常用值
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Mar 31, 2024
1 parent 2ca4f69 commit c3b19ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions header/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,7 @@ const (
XRequestID = "X-Request-ID"
XRobotsTag = "X-Robots-Tag"
XDownloadOptions = "X-Download-Options"
XRateLimitLimit = "X-Rate-Limit-Limit"
XRateLimitRemaining = "X-Rate-Limit-Remaining"
XRateLimitReset = "X-Rate-Limit-Reset"
)
5 changes: 3 additions & 2 deletions header/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

package header

// 各个报头的值
// 一些报头的常用值
const (
UTF8 = "utf-8"
UTF8 = "utf-8"
NoCache = "no-cache"

// MessageHTTP TRACE 请求方法的 content-type 值
MessageHTTP = "message/http"
Expand Down

0 comments on commit c3b19ba

Please sign in to comment.