Documentation ¶
Index ¶
- Constants
- Variables
- func NewAddress() string
- func NewHeaderKey() string
- func NewHeaderValue() string
- func NewHost() net.IP
- func NewHostAndPort() string
- func NewMethod() string
- func NewParameterKey() string
- func NewParameterValue() string
- func NewPath() string
- func NewPort() int
- func NewRequest() *http.Request
- func NewScheme() string
- func NewStatusCode() int
- func NewTimeout() int
- func NewURL() *url.URL
Constants ¶
View Source
const ( CharsetPath = test.CharsetAlphaNumeric + "_" CharsetName = test.CharsetAlphaNumeric + "_-" CharsetValue = test.CharsetAlphaNumeric + "_-" )
Variables ¶
View Source
var ( Methods = []string{ http.MethodGet, http.MethodPost, http.MethodPut, http.MethodPatch, http.MethodDelete, } StatusCodes = []int{ http.StatusContinue, http.StatusSwitchingProtocols, http.StatusProcessing, http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNonAuthoritativeInfo, http.StatusNoContent, http.StatusResetContent, http.StatusPartialContent, http.StatusMultiStatus, http.StatusAlreadyReported, http.StatusIMUsed, http.StatusMultipleChoices, http.StatusMovedPermanently, http.StatusFound, http.StatusSeeOther, http.StatusNotModified, http.StatusUseProxy, http.StatusTemporaryRedirect, http.StatusPermanentRedirect, http.StatusBadRequest, http.StatusUnauthorized, http.StatusPaymentRequired, http.StatusForbidden, http.StatusNotFound, http.StatusMethodNotAllowed, http.StatusNotAcceptable, http.StatusProxyAuthRequired, http.StatusRequestTimeout, http.StatusConflict, http.StatusGone, http.StatusLengthRequired, http.StatusPreconditionFailed, http.StatusRequestEntityTooLarge, http.StatusRequestURITooLong, http.StatusUnsupportedMediaType, http.StatusRequestedRangeNotSatisfiable, http.StatusExpectationFailed, http.StatusTeapot, http.StatusUnprocessableEntity, http.StatusLocked, http.StatusFailedDependency, http.StatusUpgradeRequired, http.StatusPreconditionRequired, http.StatusTooManyRequests, http.StatusRequestHeaderFieldsTooLarge, http.StatusUnavailableForLegalReasons, http.StatusInternalServerError, http.StatusNotImplemented, http.StatusBadGateway, http.StatusServiceUnavailable, http.StatusGatewayTimeout, http.StatusHTTPVersionNotSupported, http.StatusVariantAlsoNegotiates, http.StatusInsufficientStorage, http.StatusLoopDetected, http.StatusNotExtended, http.StatusNetworkAuthenticationRequired, } )
Functions ¶
func NewAddress ¶
func NewAddress() string
func NewHeaderKey ¶
func NewHeaderKey() string
func NewHeaderValue ¶
func NewHeaderValue() string
func NewHostAndPort ¶
func NewHostAndPort() string
func NewParameterKey ¶
func NewParameterKey() string
func NewParameterValue ¶
func NewParameterValue() string
func NewRequest ¶
func NewStatusCode ¶
func NewStatusCode() int
func NewTimeout ¶
func NewTimeout() int
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.