Documentation ¶
Index ¶
- type HcHttpClient
- func (hc *HcHttpClient) GetCredential() auth.ICredential
- func (hc *HcHttpClient) PreInvoke(headers map[string]string) *HcHttpClient
- func (hc *HcHttpClient) Sync(req interface{}, reqDef *def.HttpRequestDef) (interface{}, error)
- func (hc *HcHttpClient) SyncInvoke(req interface{}, reqDef *def.HttpRequestDef, exchange *exchange.SdkExchange) (interface{}, error)
- func (hc *HcHttpClient) WithCredential(credential auth.ICredential) *HcHttpClient
- func (hc *HcHttpClient) WithEndpoints(endpoints []string) *HcHttpClient
- type HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) Build() *HcHttpClient
- func (builder *HcHttpClientBuilder) WithCredential(iCredential auth.ICredential) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithCredentialsType(credentialsType string) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithDerivedAuthServiceName(derivedAuthServiceName string) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithEndpoint(endpoint string) *HcHttpClientBuilderdeprecated
- func (builder *HcHttpClientBuilder) WithEndpoints(endpoints []string) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithHttpConfig(httpConfig *config.HttpConfig) *HcHttpClientBuilder
- func (builder *HcHttpClientBuilder) WithRegion(region *region.Region) *HcHttpClientBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HcHttpClient ¶
type HcHttpClient struct {
// contains filtered or unexported fields
}
func NewHcHttpClient ¶
func NewHcHttpClient(httpClient *impl.DefaultHttpClient) *HcHttpClient
func (*HcHttpClient) GetCredential ¶ added in v0.0.90
func (hc *HcHttpClient) GetCredential() auth.ICredential
func (*HcHttpClient) PreInvoke ¶ added in v0.0.90
func (hc *HcHttpClient) PreInvoke(headers map[string]string) *HcHttpClient
func (*HcHttpClient) Sync ¶
func (hc *HcHttpClient) Sync(req interface{}, reqDef *def.HttpRequestDef) (interface{}, error)
func (*HcHttpClient) SyncInvoke ¶ added in v0.0.90
func (hc *HcHttpClient) SyncInvoke(req interface{}, reqDef *def.HttpRequestDef, exchange *exchange.SdkExchange) (interface{}, error)
func (*HcHttpClient) WithCredential ¶
func (hc *HcHttpClient) WithCredential(credential auth.ICredential) *HcHttpClient
func (*HcHttpClient) WithEndpoints ¶ added in v0.1.27
func (hc *HcHttpClient) WithEndpoints(endpoints []string) *HcHttpClient
type HcHttpClientBuilder ¶
type HcHttpClientBuilder struct { CredentialsType []string // contains filtered or unexported fields }
func NewHcHttpClientBuilder ¶
func NewHcHttpClientBuilder() *HcHttpClientBuilder
func (*HcHttpClientBuilder) Build ¶
func (builder *HcHttpClientBuilder) Build() *HcHttpClient
func (*HcHttpClientBuilder) WithCredential ¶
func (builder *HcHttpClientBuilder) WithCredential(iCredential auth.ICredential) *HcHttpClientBuilder
func (*HcHttpClientBuilder) WithCredentialsType ¶
func (builder *HcHttpClientBuilder) WithCredentialsType(credentialsType string) *HcHttpClientBuilder
func (*HcHttpClientBuilder) WithDerivedAuthServiceName ¶ added in v0.0.79
func (builder *HcHttpClientBuilder) WithDerivedAuthServiceName(derivedAuthServiceName string) *HcHttpClientBuilder
func (*HcHttpClientBuilder) WithEndpoint
deprecated
func (builder *HcHttpClientBuilder) WithEndpoint(endpoint string) *HcHttpClientBuilder
Deprecated: As of 0.1.27, because of the support of the multi-endpoint feature, use WithEndpoints instead
func (*HcHttpClientBuilder) WithEndpoints ¶ added in v0.1.27
func (builder *HcHttpClientBuilder) WithEndpoints(endpoints []string) *HcHttpClientBuilder
func (*HcHttpClientBuilder) WithHttpConfig ¶
func (builder *HcHttpClientBuilder) WithHttpConfig(httpConfig *config.HttpConfig) *HcHttpClientBuilder
func (*HcHttpClientBuilder) WithRegion ¶
func (builder *HcHttpClientBuilder) WithRegion(region *region.Region) *HcHttpClientBuilder
Click to show internal directories.
Click to hide internal directories.