Versions in this module Expand all Collapse all v1 v1.0.8 May 26, 2025 Changes in this version + func FailedToLoadBody[T goservectx.Principal](ctx *goservectx.Request[T], _ error) + func FormValues(r *http.Request) url.Values + func GetRequestBody[B any, T goservectx.Principal](ctx *goservectx.Request[T], target B, onSuccess OnSuccess[B, T], ...) + type Config struct + Body any + ExpectedStatusCode int + Headers map[string]string + Host string + Path string + Query map[string]string + func Build(host string) *Config + func (config *Config) WithBody(body any) *Config + func (config *Config) WithExpectedStatusCode(expectedStatusCode int) *Config + func (config *Config) WithHeader(name string, value any) *Config + func (config *Config) WithHeaders(headers map[string]any) *Config + func (config *Config) WithPath(path string) *Config + func (config *Config) WithQueries(queries map[string]any) *Config + func (config *Config) WithQuery(name string, value any) *Config + type FieldSource string + type OnError func(ctx *goservectx.Request[T], err error) + type OnSuccess func(ctx *goservectx.Request[T], body B) + type RequestError struct + Code int + Field string + Message string + Source FieldSource + func BindRequestParams(r *http.Request, target interface{}) *RequestError + func (e *RequestError) Error() string + type Service interface + BodyDecode func(target any) error + Close func() + Delete func(config *Config) (*http.Response, error) + Exec func(method string, config *Config) (*http.Response, error) + Get func(config *Config) (*http.Response, error) + Head func(config *Config) (*http.Response, error) + Patch func(config *Config) (*http.Response, error) + Post func(config *Config) (*http.Response, error) + Put func(config *Config) (*http.Response, error) + ToString func() (string, error) + func NewService() Service v1.0.7 Apr 26, 2025 v1.0.6 Apr 26, 2025 v1.0.5 Apr 26, 2025 v1.0.4 Apr 26, 2025 v1.0.3 Apr 26, 2025 v1.0.1 Apr 25, 2025 v1.0.0 Apr 25, 2025 v0 v0.0.1 Apr 25, 2025 v0.0.1-SNAPSHOT Apr 25, 2025