Documentation
¶
Index ¶
- Variables
- type Accept
- type AttrHTTPRequestorHeaders
- func (my AttrHTTPRequestorHeaders) Accept(accept Accept) HTTPRequestorAttributer
- func (AttrHTTPRequestorHeaders) Append(headers map[string]any) HTTPRequestorAttributer
- func (my AttrHTTPRequestorHeaders) ContentType(contentType ContentType) HTTPRequestorAttributer
- func (my AttrHTTPRequestorHeaders) RegisterAttr(r *HTTPRequestor)
- func (AttrHTTPRequestorHeaders) Set(headers map[string]any) HTTPRequestorAttributer
- type AttrHTTPRequestorQueries
- type AttrHTTPRequestorURL
- type ContentType
- type HTTPClient
- type HTTPRequestor
- type HTTPRequestorAttributer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContentTypeJSON ContentType = "json" ContentTypeXML ContentType = "xml" ContentTypeXWwwFormURLencoded ContentType = "form" ContentTypeFormData ContentType = "form-data" ContentTypePlain ContentType = "plain" ContentTypeHTML ContentType = "html" ContentTypeCSS ContentType = "css" ContentTypeJavascript ContentType = "javascript" ContentTypeSteam ContentType = "steam" ContentTypes = map[ContentType]string{ ContentTypeJSON: "application/json", ContentTypeXML: "application/xml", ContentTypeXWwwFormURLencoded: "application/x-www-form-urlencoded", ContentTypeFormData: "form-data", ContentTypePlain: "text/plain", ContentTypeHTML: "text/html", ContentTypeCSS: "text/css", ContentTypeJavascript: "text/javascript", ContentTypeSteam: "application/octet-stream", } AcceptJSON Accept = "json" AcceptXML Accept = "xml" AcceptPlain Accept = "plain" AcceptHTML Accept = "html" AcceptCSS Accept = "css" AcceptJavascript Accept = "javascript" AcceptSteam Accept = "steam" AcceptAny Accept = "any" Accepts = map[Accept]string{ AcceptJSON: "application/json", AcceptXML: "application/xml", AcceptPlain: "text/plain", AcceptHTML: "text/html", AcceptCSS: "text/css", AcceptJavascript: "text/javascript", AcceptSteam: "application/octet-stream", AcceptAny: "*/*", } )
View Source
var APP struct { HTTPClient HTTPClient HTTPRequestor HTTPRequestor }
Functions ¶
This section is empty.
Types ¶
type AttrHTTPRequestorHeaders ¶ added in v1.54.13
type AttrHTTPRequestorHeaders struct {
// contains filtered or unexported fields
}
func (AttrHTTPRequestorHeaders) Accept ¶ added in v1.54.13
func (my AttrHTTPRequestorHeaders) Accept(accept Accept) HTTPRequestorAttributer
func (AttrHTTPRequestorHeaders) Append ¶ added in v1.54.13
func (AttrHTTPRequestorHeaders) Append(headers map[string]any) HTTPRequestorAttributer
func (AttrHTTPRequestorHeaders) ContentType ¶ added in v1.54.13
func (my AttrHTTPRequestorHeaders) ContentType(contentType ContentType) HTTPRequestorAttributer
func (AttrHTTPRequestorHeaders) RegisterAttr ¶ added in v1.54.13
func (my AttrHTTPRequestorHeaders) RegisterAttr(r *HTTPRequestor)
func (AttrHTTPRequestorHeaders) Set ¶ added in v1.54.13
func (AttrHTTPRequestorHeaders) Set(headers map[string]any) HTTPRequestorAttributer
******************** Headers ********************
type AttrHTTPRequestorQueries ¶ added in v1.54.13
type AttrHTTPRequestorQueries struct {
// contains filtered or unexported fields
}
func (AttrHTTPRequestorQueries) RegisterAttr ¶ added in v1.54.13
func (my AttrHTTPRequestorQueries) RegisterAttr(r *HTTPRequestor)
func (AttrHTTPRequestorQueries) RemoveEmpty ¶ added in v1.54.13
func (my AttrHTTPRequestorQueries) RemoveEmpty() HTTPRequestorAttributer
func (AttrHTTPRequestorQueries) Set ¶ added in v1.54.13
func (AttrHTTPRequestorQueries) Set(queries map[string]any) HTTPRequestorAttributer
******************** Queries ********************
type AttrHTTPRequestorURL ¶ added in v1.54.13
type AttrHTTPRequestorURL struct {
// contains filtered or unexported fields
}
func (AttrHTTPRequestorURL) RegisterAttr ¶ added in v1.54.13
func (my AttrHTTPRequestorURL) RegisterAttr(r *HTTPRequestor)
func (AttrHTTPRequestorURL) Set ¶ added in v1.54.13
func (AttrHTTPRequestorURL) Set(urls ...any) HTTPRequestorAttributer
******************** URL ********************
type ContentType ¶
type ContentType string
type HTTPClient ¶
type HTTPClient struct{}
type HTTPRequestor ¶ added in v1.54.13
type HTTPRequestor struct {
// contains filtered or unexported fields
}
type HTTPRequestorAttributer ¶ added in v1.54.13
type HTTPRequestorAttributer interface{ RegisterAttr(r *HTTPRequestor) }
Click to show internal directories.
Click to hide internal directories.