Struct: request.Handlers

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

Overview

A Handlers provides a collection of request handlers for various stages of handling requests.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

AfterRetry HandlerList

Build HandlerList

BuildStream HandlerList

Complete HandlerList

CompleteAttempt HandlerList

Retry HandlerList

Unmarshal HandlerList

UnmarshalError HandlerList

UnmarshalMeta HandlerList

UnmarshalStream HandlerList

Validate HandlerList

ValidateResponse HandlerList

Method Details

func (h *Handlers) Clear()

Clear removes callback functions for all handlers.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// File 'aws/request/handlers.go', line 47

func (h *Handlers) Clear() { h.Validate.Clear() h.Build.Clear() h.BuildStream.Clear() h.Send.Clear() h.Sign.Clear() h.Unmarshal.Clear() h.UnmarshalStream.Clear() h.UnmarshalMeta.Clear() h.UnmarshalError.Clear() h.ValidateResponse.Clear() h.Retry.Clear() h.AfterRetry.Clear() h.CompleteAttempt.Clear() h.Complete.Clear() }

func (h *Handlers) Copy() Handlers

Copy returns a copy of this handler's lists.



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// File 'aws/request/handlers.go', line 27

func (h *Handlers) Copy() Handlers { return Handlers{ Validate: h.Validate.copy(), Build: h.Build.copy(), BuildStream: h.BuildStream.copy(), Sign: h.Sign.copy(), Send: h.Send.copy(), ValidateResponse: h.ValidateResponse.copy(), Unmarshal: h.Unmarshal.copy(), UnmarshalStream: h.UnmarshalStream.copy(), UnmarshalError: h.UnmarshalError.copy(), UnmarshalMeta: h.UnmarshalMeta.copy(), Retry: h.Retry.copy(), AfterRetry: h.AfterRetry.copy(), CompleteAttempt: h.CompleteAttempt.copy(), Complete: h.Complete.copy(), } }

func (h *Handlers) IsEmpty() bool

IsEmpty returns if there are no handlers in any of the handlerlists.



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// File 'aws/request/handlers.go', line 65

func (h *Handlers) IsEmpty() bool { if h.Validate.Len() != 0 { return false } if h.Build.Len() != 0 { return false } if h.BuildStream.Len() != 0 { return false } if h.Send.Len() != 0 { return false } if h.Sign.Len() != 0 { return false } if h.Unmarshal.Len() != 0 { return false } if h.UnmarshalStream.Len() != 0 { return false } if h.UnmarshalMeta.Len() != 0 { return false } if h.UnmarshalError.Len() != 0 { return false } if h.ValidateResponse.Len() != 0 { return false } if h.Retry.Len() != 0 { return false } if h.AfterRetry.Len() != 0 { return false } if h.CompleteAttempt.Len() != 0 { return false } if h.Complete.Len() != 0 { return false } return true }