Struct: client.Client

import "../ibm-cos-sdk-go/aws/client"

Overview

A Client implements the base client request and response handling used by all service clients.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Config aws.Config

Handlers request.Handlers

Method Details

func (c *Client) AddDebugHandlers()

AddDebugHandlers injects debug logging handlers into the service to log request debug information.



90
91
92
93
// File 'aws/client/client.go', line 90

func (c *Client) AddDebugHandlers() { c.Handlers.Send.PushFrontNamed(LogHTTPRequestHandler) c.Handlers.Send.PushBackNamed(LogHTTPResponseHandler) }

func (c *Client) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request

NewRequest returns a new Request pointer for the service API operation and parameters.



84
85
86
// File 'aws/client/client.go', line 84

func (c *Client) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request { return request.New(c.Config, c.ClientInfo, c.Handlers, c.Retryer, operation, params, data) }