Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Delete(ctx context.Context, url string, headers map[string]string) ([]byte, error)
- func (c *Client) Get(ctx context.Context, url string, headers map[string]string) ([]byte, error)
- func (c *Client) Post(ctx context.Context, url string, body any, headers map[string]string) ([]byte, error)
- func (c *Client) Put(ctx context.Context, url string, body any, headers map[string]string) ([]byte, error)
- type Option
Constants ¶
View Source
const ( HTTPContentType = "Content-Type" HTTPContentTypeUrlencoded = "application/x-www-form-urlencoded" HTTPContentTypeUrlencodedUTF8 = "application/x-www-form-urlencoded; charset=utf-8" HTTPContentTypeJson = "application/json" HTTPContentTypeJsonUTF8 = "application/json; charset=utf-8" HTTPContentTypeXml = "application/xml" HTTPContentTypeXmlUTF8 = "application/xml; charset=utf-8" HTTPContentTypePlain = "text/plain" HTTPContentTypePlainUTF8 = "text/plain; charset=utf-8" HTTPContentTypeHtml = "text/html" HTTPContentTypeHtmlUTF8 = "text/html; charset=utf-8" HTTPContentTypeFormData = "multipart/form-data" HTTPContentTypeFormDataUTF8 = "multipart/form-data; charset=utf-8" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.