Documentation ¶
Index ¶
- type HttpTransportAuthProvider
- type HttpTransportClient
- func (t *HttpTransportClient) AddAuthHeaders(req *http.Request)
- func (t *HttpTransportClient) AddCommonHeaders(req *http.Request)
- func (t *HttpTransportClient) GetJSON(path string, out any, params ...HttpTransportClientParams) error
- func (t *HttpTransportClient) PostJSON(path string, inn any, out any, params ...HttpTransportClientParams) error
- func (t *HttpTransportClient) PutJSON(path string, inn any, out any, params ...HttpTransportClientParams) error
- type HttpTransportClientConfig
- type HttpTransportClientParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpTransportClient ¶
type HttpTransportClient struct { Client *http.Client Config *HttpTransportClientConfig }
func (*HttpTransportClient) AddAuthHeaders ¶
func (t *HttpTransportClient) AddAuthHeaders(req *http.Request)
func (*HttpTransportClient) AddCommonHeaders ¶
func (t *HttpTransportClient) AddCommonHeaders(req *http.Request)
func (*HttpTransportClient) GetJSON ¶
func (t *HttpTransportClient) GetJSON(path string, out any, params ...HttpTransportClientParams) error
func (*HttpTransportClient) PostJSON ¶
func (t *HttpTransportClient) PostJSON(path string, inn any, out any, params ...HttpTransportClientParams) error
func (*HttpTransportClient) PutJSON ¶
func (t *HttpTransportClient) PutJSON(path string, inn any, out any, params ...HttpTransportClientParams) error
type HttpTransportClientConfig ¶
type HttpTransportClientConfig struct { BaseURL string AuthProvider HttpTransportAuthProvider Role string Version rorversion.RorVersion }
type HttpTransportClientParams ¶
type HttpTransportClientParams string
const (
HttpTransportClientParamsNoAuth HttpTransportClientParams = "NOAUTH"
)
Click to show internal directories.
Click to hide internal directories.