Documentation
¶
Index ¶
- Variables
- func DownloadFile(folder string, name string, uri string) (string, error)
- func GetSSRFDialContext(timeout time.Duration) func(ctx context.Context, network, addr string) (net.Conn, error)
- func IsHttpUrl(str string) error
- func IsValidUrl(uri string) bool
- func ReadFile(uri string) (io.ReadCloser, error)
- func Send(logger api.Logger, client *http.Client, bodyType string, method string, ...) (*http.Response, error)
- func SendWithFormData(logger api.Logger, client *http.Client, bodyType string, method string, ...) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BodyTypeMap = map[string]string{"none": "", "text": "text/plain", "json": "application/json", "html": "text/html", "xml": "application/xml", "javascript": "application/javascript", "form": "application/x-www-form-urlencoded;param=value"}
Functions ¶
func GetSSRFDialContext ¶
func IsValidUrl ¶
func ReadFile ¶
func ReadFile(uri string) (io.ReadCloser, error)
ReadFile Need to close the return reader
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.