Documentation ¶
Index ¶
- func FastSend(target string, headers map[string]string, origin *http.Request) (data []byte, statusCode int, contentType string, err error)
- func HttpDelete(url string, headers map[string]string, body []byte) (data []byte, statusCode int, err error)
- func HttpGet(path string, headers map[string]string) (data []byte, statusCode int, err error)
- func HttpPost(url string, headers map[string]string, body []byte) (data []byte, statusCode int, err error)
- func HttpProxy(serviceUrl string, w http.ResponseWriter, r *http.Request)
- func HttpPut(url string, headers map[string]string, body []byte) (data []byte, statusCode int, err error)
- func HttpRequest(method, path string, headers map[string]string, body []byte) (data []byte, statusCode int, err error)
- func SendRequest(req *http.Request) (data []byte, statusCode int, err error)
- func TransmitRequest(path string, origin *http.Request) (data []byte, statusCode int, contentType string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpDelete ¶
func HttpDelete(url string, headers map[string]string, body []byte) (data []byte, statusCode int, err error)
HttpDelete 发送http delete请求
func HttpPost ¶
func HttpPost(url string, headers map[string]string, body []byte) (data []byte, statusCode int, err error)
HttpPost 发送http post请求
func HttpProxy ¶
func HttpProxy(serviceUrl string, w http.ResponseWriter, r *http.Request)
HttpProxy http代理
func HttpPut ¶
func HttpPut(url string, headers map[string]string, body []byte) (data []byte, statusCode int, err error)
HttpPut 发送http put请求
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.