Documentation ¶
Index ¶
- func GetClientIp(r *http.Request) string
- func HttpGet[T any](url string, params string, headers map[string]string, t *T, retryCount int) (*T, error)
- func HttpGetValues[T any](url string, params url.Values, headers map[string]string, t *T, retryCount int) (*T, error)
- func HttpGetValuesResultBody(url string, params url.Values, headers map[string]string, retryCount int) ([]byte, error)
- func HttpPost[T any](url string, params map[string]interface{}, headers map[string]string, t *T) (*T, error)
- func HttpPostJson[T any](url string, params string, headers map[string]string, timeout int, t *T) (*T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientIp ¶
GetClientIp returns the client ip of this request without port. Note that this ip address might be modified by client header.
func HttpGetValues ¶
func HttpGetValuesResultBody ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.