{"modulePath":"github.com/Method-Security/methodwebtest","version":"v0.0.22","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package core\n\n## Types\n\n```go\ntype APIError struct {\n\tStatusCode int `json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nAPIError is a lightweight wrapper around the standard error interface that preserves the status code from the RPC, if any.\n\n```go\nfunc NewAPIError(statusCode int, err error) *APIError\n```\nNewAPIError constructs a new API error.\n\n```go\nfunc (a *APIError) Error() string\n```\nError returns the API error's message.\n\n```go\nfunc (a *APIError) Unwrap() error\n```\nUnwrap returns the underlying error. This also makes the error compatible with errors.As and errors.Is.\n\n```go\ntype BaseURLOption struct {\n\tBaseURL string\n}\n```\nBaseURLOption implements the RequestOption interface.\n\n```go\ntype BodyPropertiesOption struct {\n\tBodyProperties map[string]interface{}\n}\n```\nBodyPropertiesOption implements the RequestOption interface.\n\n```go\ntype HTTPClient interface {\n\tDo(*http.Request) (*http.Response, error)\n}\n```\nHTTPClient is an interface for a subset of the \\*http.Client.\n\n```go\ntype HTTPClientOption struct {\n\tHTTPClient HTTPClient\n}\n```\nHTTPClientOption implements the RequestOption interface.\n\n```go\ntype HTTPHeaderOption struct {\n\tHTTPHeader http.Header\n}\n```\nHTTPHeaderOption implements the RequestOption interface.\n\n```go\ntype MaxAttemptsOption struct {\n\tMaxAttempts uint\n}\n```\nMaxAttemptsOption implements the RequestOption interface.\n\n```go\ntype QueryParametersOption struct {\n\tQueryParameters url.Values\n}\n```\nQueryParametersOption implements the RequestOption interface.\n\n```go\ntype RequestOption interface {\n\t// contains filtered or unexported methods\n}\n```\nRequestOption adapts the behavior of the client or an individual request.\n\n```go\ntype RequestOptions struct {\n\tBaseURL         string\n\tHTTPClient      HTTPClient\n\tHTTPHeader      http.Header\n\tBodyProperties  map[string]interface{}\n\tQueryParameters url.Values\n\tMaxAttempts     uint\n}\n```\nRequestOptions defines all of the possible request options.\n\nThis type is primarily used by the generated code and is not meant to be used directly; use the option package instead.\n\n```go\nfunc NewRequestOptions(opts ...RequestOption) *RequestOptions\n```\nNewRequestOptions returns a new \\*RequestOptions value.\n\nThis function is primarily used by the generated code and is not meant to be used directly; use RequestOption instead.\n\n```go\nfunc (r *RequestOptions) ToHeader() http.Header\n```\nToHeader maps the configured request options into a http.Header used for the request(s).\n\n","path":"github.com/Method-Security/methodwebtest/generated/go/core","name":"core","synopsis":"","isRedistributable":true}
