httpClientV3

package
v1.54.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 Accept

type Accept string

type AttrHTTPRequestorHeaders added in v1.54.13

type AttrHTTPRequestorHeaders struct {
	// contains filtered or unexported fields
}

func (AttrHTTPRequestorHeaders) Accept added in v1.54.13

func (AttrHTTPRequestorHeaders) Append added in v1.54.13

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

******************** 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 (AttrHTTPRequestorQueries) Set added in v1.54.13

******************** 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

******************** 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) }

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL