MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / Headers

Method Headers

sdk/cliproxy/auth/selector.go:104–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102}
103
104func (e *modelCooldownError) Headers() http.Header {
105 headers := make(http.Header)
106 headers.Set("Content-Type", "application/json")
107 resetSeconds := int(math.Ceil(e.resetIn.Seconds()))
108 if resetSeconds < 0 {
109 resetSeconds = 0
110 }
111 headers.Set("Retry-After", strconv.Itoa(resetSeconds))
112 return headers
113}
114
115func authPriority(auth *Auth) int {
116 if auth == nil || auth.Attributes == nil {

Calls 1

SetMethod · 0.45