5 import "github.com/aws/aws-sdk-go/aws"
7 // setContext updates the Request to use the passed in context for cancellation.
8 // Context will also be used for request retry delay.
10 // Creates shallow copy of the http.Request with the WithContext method.
11 func setRequestContext(r *Request, ctx aws.Context) {
13 r.HTTPRequest.Cancel = ctx.Done()