Documentation
¶
Overview ¶
Package httputil provides methods for working with HTTP request/responses
Index ¶
- func GetDescByCode(code int) string
- func GetRemoteAddr(r *http.Request) (string, string)
- func GetRemoteHost(r *http.Request) string
- func GetRemotePort(r *http.Request) string
- func GetRequestAddr(r *http.Request) (string, string)
- func GetRequestHost(r *http.Request) string
- func GetRequestPort(r *http.Request) string
- func IsURL(url string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDescByCode ¶
GetDescByCode returns response code description
func GetRemoteAddr ¶
GetRemoteAddr returns network address that sent the request
func GetRemoteHost ¶
GetRemoteHost returns host that sent the request
func GetRemotePort ¶
GetRemotePort returns port of the host that sent the request
func GetRequestAddr ¶
GetRequestAddr returns host and port info from request
func GetRequestHost ¶
GetRequestHost returns host from request struct
func GetRequestPort ¶
GetRequestPort returns port from request struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.