client

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func AddPrimeHeaders

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

Types

type RestClient

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

	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