Documentation ¶
Index ¶
- Variables
- func HttpDelete(url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
- func HttpDo(method string, url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
- func HttpGet(url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
- func HttpPost(url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
- func HttpPut(url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
- func InitializeHttpClient()
- func ShutDownApp(reason string) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
var Http2_client http.Client
var Http_client http.Client
Http_client is a basic default http client. will be updating this default client so that it can support HTTP/2 as well.
Functions ¶
func HttpDelete ¶
func HttpDelete(url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
HttpDelete function acts as API for HTTP DELETE request Arguments and description is same as HttpDo except method.
func HttpDo ¶
func HttpDo(method string, url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
HttpDo function acts as a API for external use. arguments method can be any of PUT/GET/DELETE/POST url should be string
func HttpGet ¶
func HttpGet(url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
HttpGet function acts as API for HTTP GET request Arguments and description is same as HttpDo except method.
func HttpPost ¶
func HttpPost(url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
HttpPost function acts as API for HTTP POST request Arguments and description is same as HttpDo except method.
func HttpPut ¶
func HttpPut(url string, content_type string, body []byte, opts ...string) (resp *http.Response, err error)
HttpPut function acts as API for HTTP PUT request Arguments and description is same as HttpDo except method.
func InitializeHttpClient ¶
func InitializeHttpClient()
//// TODO /////////////////////////// This function can be modularized in future to support certificates in that case allow_http and key file path can be taken from configuration file
Types ¶
This section is empty.