Documentation ¶
Index ¶
- Variables
- func CheckProtocol(host string) (string, error)
- func Get(target string) ([]byte, int, error)
- func Init(opt *Options) (err error)
- func ParseRequest(oReq *http.Request) (*proto.Request, error)
- func Request(target string, rule poc.Rule, variableMap map[string]any) error
- func ReverseGet(target string) ([]byte, error)
- func Url2UrlType(u *url.URL) *proto.UrlType
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RtryRedirect *retryablehttp.Client RtryNoRedirect *retryablehttp.Client RtryNoRedirectHttpClient *http.Client RtryRedirectHttpClient *http.Client )
View Source
var ( HTTP_PREFIX = "http://" HTTPS_PREFIX = "https://" )
Functions ¶
func CheckProtocol ¶
return error if host is not living or if host is live return http(s) url
Types ¶
Click to show internal directories.
Click to hide internal directories.