Documentation ¶
Index ¶
- Variables
- func CheckProtocol(host string) (string, error)
- func Get(target string) ([]byte, int, error)
- func GetDefaultTimeout() time.Duration
- func GetMaxDefaultBody() int64
- func GetTimeout(target string, timeout time.Duration) ([]byte, int, error)
- func Init(opt *Options) (err error)
- func ParseRequest(oReq *http.Request) (*proto.Request, error)
- func Request(target string, header []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 )
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
func GetDefaultTimeout ¶
func GetMaxDefaultBody ¶
func GetMaxDefaultBody() int64
Types ¶
Click to show internal directories.
Click to hide internal directories.