client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSuccessHttpStatusCodes = []int{http.StatusOK}

Functions

func AddExchangeHeaders

func AddExchangeHeaders(req *http.Request, path string, body []byte, client core.RestClient, t time.Time)

Types

type RestClient

type RestClient interface {
	HttpBaseUrl() string
	SetBaseUrl(u string) RestClient

	HttpClient() *http.Client
	SetHeadersFunc(hf core.HttpHeaderFunc) RestClient
	HeadersFunc() core.HttpHeaderFunc

	Credentials() *credentials.Credentials
}

func NewRestClient

func NewRestClient(credentials *credentials.Credentials, httpClient http.Client) RestClient

Jump to

Keyboard shortcuts

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