package
2.0.108
Repository: https://github.com/devlibx/gox-http.git
Documentation: pkg.go.dev

# Functions

ExecuteHttp is a helper function to execute http request and parse response to success or error object.
ExecuteHttpListResponse is a helper function to execute http request and parse list based response to success or error object.
ExtractError is a helper function to extract error from error object first return value is the error object second [errorResponsePayloadExists[bool]] is true if error response payload exists.
GetRestyClientFromGoxHttpCtx - Get resty client from gox http context Parameters: - goHttpCtx - GoxHttpContext to extract resty client which is powering this api - apiName - Name of the api Returns: - resty client if this command is implemented using resty client under the hood - bool - true if resty client is returned otherwise false.
NewGoxHttpContext - Create a new http context to be used.
NewRequestResponseSecurityConfigApplier creates a new RequestResponseSecurityConfigApplier.
RequestResponseLoggerMiddleware is a middleware that logs the request and response.
SetupOnBeforeRequestOverRestyClientFromGoxHttpCtx - Setup on before request middleware over resty client Parameters: - goHttpCtx - GoxHttpContext to extract resty client which is powering this api - apiName - Name of the api - middleware - Middleware to be setup to be called on before request Returns: - bool - true if resty client is returned otherwise false.

# Variables

No description provided by the author
GoxHttpRequestResponseLoggingEnabled is a global flag to enable logging of request response.

# Structs

GoxError is the typed response after successful http call and parsing response to success object.
GoxSuccessListResponse is the typed response after successful http call and parsing response to success object.
GoxSuccessResponse is the typed response after successful http call and parsing response to success object.
No description provided by the author
RequestResponseSecurityConfig is the configuration for request response security.

# Interfaces

GoxHttpContext is the interface to be used by external clients.
RequestResponseSecurityConfigApplier is an interface to apply security configuration to request response logs.
RestyClientProvider - Interface to get resty client.