Versions in this module Expand all Collapse all v0 v0.0.2 Apr 10, 2025 Changes in this version + var AcceptAny Accept = "any" + var AcceptCss Accept = "css" + var AcceptHtml Accept = "html" + var AcceptJavascript Accept = "javascript" + var AcceptJson Accept = "json" + var AcceptPlain Accept = "plain" + var AcceptSteam Accept = "steam" + var AcceptXml Accept = "xml" + var Accepts = map[Accept]string + var ContentTypeCss ContentType = "css" + var ContentTypeForm ContentType = "form" + var ContentTypeFormData ContentType = "form-data" + var ContentTypeHtml ContentType = "html" + var ContentTypeJavascript ContentType = "javascript" + var ContentTypeJson ContentType = "json" + var ContentTypePlain ContentType = "plain" + var ContentTypeSteam ContentType = "steam" + var ContentTypeXml ContentType = "xml" + var ContentTypes = map[ContentType]string + var GenerateCertErr GenerateCertError + var GenerateRequestErr GenerateRequestError + var ReadResponseErr ReadResponseError + var SetFormBodyErr SetFormBodyError + var SetJsonBodyErr SetJsonBodyError + var SetSteamBodyErr SetSteamBodyError + var SetXmlBodyErr SetXmlBodyError + var UnmarshalJsonErr UnmarshalJsonError + var UnmarshalXmlErr UnmarshalXmlError + var UrlEmptyErr UrlEmptyError + var WriteResponseErr WriteResponseError + type Accept string + type ContentType string + type GenerateCertError struct + func (*GenerateCertError) New(msg string) myError.IMyError + func (*GenerateCertError) Panic() myError.IMyError + func (*GenerateCertError) Wrap(err error) myError.IMyError + func (my *GenerateCertError) Error() string + func (my *GenerateCertError) Is(target error) bool + type GenerateRequestError struct + func (*GenerateRequestError) New(msg string) myError.IMyError + func (*GenerateRequestError) Panic() myError.IMyError + func (*GenerateRequestError) Wrap(err error) myError.IMyError + func (my *GenerateRequestError) Error() string + func (my *GenerateRequestError) Is(target error) bool + type HttpClient struct + Err error + var App HttpClient + func NewDelete(url string) *HttpClient + func NewGet(url string) *HttpClient + func NewHttpClient(url string) *HttpClient + func NewPost(url string) *HttpClient + func NewPut(url string) *HttpClient + func (*HttpClient) New(url string) *HttpClient + func (*HttpClient) NewDelete(url string) *HttpClient + func (*HttpClient) NewGet(url string) *HttpClient + func (*HttpClient) NewPost(url string) *HttpClient + func (*HttpClient) NewPut(url string) *HttpClient + func (my *HttpClient) AddHeaders(headers map[string][]string) *HttpClient + func (my *HttpClient) AppendHeaderAccept(keys ...Accept) *HttpClient + func (my *HttpClient) AppendHeaderContentType(keys ...ContentType) *HttpClient + func (my *HttpClient) Download(filename string) *HttpClientDownload + func (my *HttpClient) GenerateRequest() *HttpClient + func (my *HttpClient) GetRequest() *http.Request + func (my *HttpClient) GetResponse() *http.Response + func (my *HttpClient) GetResponseJsonBody(target any, keys ...any) *HttpClient + func (my *HttpClient) GetResponseRawBody() []byte + func (my *HttpClient) GetResponseXmlBody(target any) *HttpClient + func (my *HttpClient) ParseByContentType(target any) *HttpClient + func (my *HttpClient) SaveResponseSteamFile(filename string) *HttpClient + func (my *HttpClient) Send() *HttpClient + func (my *HttpClient) SetAuthorization(username, password, title string) *HttpClient + func (my *HttpClient) SetBody(body []byte) *HttpClient + func (my *HttpClient) SetCert(filename string) *HttpClient + func (my *HttpClient) SetCssBody(text string) *HttpClient + func (my *HttpClient) SetFormBody(body map[string]string) *HttpClient + func (my *HttpClient) SetFormDataBody(texts map[string]string, files map[string]string) *HttpClient + func (my *HttpClient) SetHeaderAccept(key Accept) *HttpClient + func (my *HttpClient) SetHeaderContentType(key ContentType) *HttpClient + func (my *HttpClient) SetHeaders(headers map[string][]string) *HttpClient + func (my *HttpClient) SetHtmlBody(text string) *HttpClient + func (my *HttpClient) SetJavascriptBody(text string) *HttpClient + func (my *HttpClient) SetJsonBody(body any) *HttpClient + func (my *HttpClient) SetMethod(method string) *HttpClient + func (my *HttpClient) SetPlainBody(text string) *HttpClient + func (my *HttpClient) SetQueries(queries map[string]string) *HttpClient + func (my *HttpClient) SetSteamBody(filename string) *HttpClient + func (my *HttpClient) SetTimeoutSecond(timeoutSecond int64) *HttpClient + func (my *HttpClient) SetUrl(url string) *HttpClient + func (my *HttpClient) SetXmlBody(body any) *HttpClient + type HttpClientDownload struct + var HttpClientDownloadApp HttpClientDownload + func (*HttpClientDownload) New(httpClient *HttpClient, filename string) *HttpClientDownload + func (my *HttpClientDownload) SaveLocal() *HttpClient + func (my *HttpClientDownload) SendResponse(w http.ResponseWriter, headers map[string][]string) *HttpClient + func (my *HttpClientDownload) SetProcessContent(processContent string) *HttpClientDownload + type Multiple struct + var MultipleApp Multiple + func NewMultiple() *Multiple + func (*Multiple) New() *Multiple + func (my *Multiple) Append(hc *HttpClient) *Multiple + func (my *Multiple) GetClients() []*HttpClient + func (my *Multiple) Send() *Multiple + func (my *Multiple) SetClients(clients []*HttpClient) *Multiple + type ReadResponseError struct + func (*ReadResponseError) New(msg string) myError.IMyError + func (*ReadResponseError) Panic() myError.IMyError + func (*ReadResponseError) Wrap(err error) myError.IMyError + func (my *ReadResponseError) Error() string + func (my *ReadResponseError) Is(target error) bool + type SetFormBodyError struct + func (*SetFormBodyError) New(msg string) myError.IMyError + func (*SetFormBodyError) Panic() myError.IMyError + func (*SetFormBodyError) Wrap(err error) myError.IMyError + func (my *SetFormBodyError) Error() string + func (my *SetFormBodyError) Is(target error) bool + type SetJsonBodyError struct + func (*SetJsonBodyError) New(msg string) myError.IMyError + func (*SetJsonBodyError) Panic() myError.IMyError + func (*SetJsonBodyError) Wrap(err error) myError.IMyError + func (my *SetJsonBodyError) Error() string + func (my *SetJsonBodyError) Is(target error) bool + type SetSteamBodyError struct + func (*SetSteamBodyError) New(msg string) myError.IMyError + func (*SetSteamBodyError) Panic() myError.IMyError + func (*SetSteamBodyError) Wrap(err error) myError.IMyError + func (my *SetSteamBodyError) Error() string + func (my *SetSteamBodyError) Is(target error) bool + type SetXmlBodyError struct + func (*SetXmlBodyError) New(msg string) myError.IMyError + func (*SetXmlBodyError) Panic() myError.IMyError + func (*SetXmlBodyError) Wrap(err error) myError.IMyError + func (my *SetXmlBodyError) Error() string + func (my *SetXmlBodyError) Is(target error) bool + type UnmarshalJsonError struct + func (*UnmarshalJsonError) New(msg string) myError.IMyError + func (*UnmarshalJsonError) Panic() myError.IMyError + func (*UnmarshalJsonError) Wrap(err error) myError.IMyError + func (my *UnmarshalJsonError) Error() string + func (my *UnmarshalJsonError) Is(target error) bool + type UnmarshalXmlError struct + func (*UnmarshalXmlError) New(msg string) myError.IMyError + func (*UnmarshalXmlError) Panic() myError.IMyError + func (*UnmarshalXmlError) Wrap(err error) myError.IMyError + func (my *UnmarshalXmlError) Error() string + func (my *UnmarshalXmlError) Is(target error) bool + type UrlEmptyError struct + func (*UrlEmptyError) New(msg string) myError.IMyError + func (*UrlEmptyError) Panic() myError.IMyError + func (*UrlEmptyError) Wrap(err error) myError.IMyError + func (my *UrlEmptyError) Error() string + func (my *UrlEmptyError) Is(target error) bool + type WriteResponseError struct + func (*WriteResponseError) New(msg string) myError.IMyError + func (*WriteResponseError) Panic() myError.IMyError + func (*WriteResponseError) Wrap(err error) myError.IMyError + func (my *WriteResponseError) Error() string + func (my *WriteResponseError) Is(target error) bool