Documentation
¶
Index ¶
- Constants
- Variables
- func FetchUrl(urlObj *url.URL, srReq *http.Request, queryParams url.Values, ...) (*http.Response, error)
- func Generate(targetUrl, key, keytype, publicurl, prefix string) (canonicalurl string, sign, entryurl string)
- func ProxyFunc(w http.ResponseWriter, r *http.Request, prefix string, key string, ...)
- func Realkey(key, keytype string) string
Constants ¶
View Source
const ( HEADER_PREFIX = "header_" RESPONSE_HEADER_PREFIX = "resheader_" SUB_PREFIX = "sub_" CORS_STRING = "cors" NOCACHE_STRING = "nocache" NORF_STRING = "norf" PROXY_STRING = "proxy" IMPERSONATE_STRING = "impersonate" FORCESUB_STRING = "forcesub" NOCSP_STRING = "nocsp" TIMEOUT_STRING = "timeout" INSECURE_STRING = "insecure" COOKIE_STRING = "cookie" BASICAUTH_STRING = "basicauth" FDHEADERS_STRING = "fdheaders" BODY_STRING = "body" TYPE_STRING = "type" METHOD_STRING = "method" REFERER_STRING = "referer" ORIGIN_STRING = "origin" SCOPE_STRING = "scope" SIGN_STRING = "sign" KEYTYPE_STRING = "keytype" VALIDBEFORE_STRING = "validbefore" VALIDAFTER_STRING = "validafter" )
Variables ¶
View Source
var (
TEXTUAL_MIMES = []string{
"application/json",
"application/xml",
"application/atom+xml",
"application/x-sh",
}
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.