Methods
Private _request
- _request(method: string, headers: any, resource: Resource, body?: any): Promise<Response>
-
Parameters
-
method: string
-
headers: any
-
-
Optional body: any
Returns Promise<Response>
Protected handleRequestError
- handleRequestError(resp: Response): Promise<Response>
-
Parameters
Returns Promise<Response>
Protected request
- request(method: string, headers: any, resource: Resource, body?: any): Promise<Response>
-
Parameters
-
method: string
-
headers: any
-
-
Optional body: any
Returns Promise<Response>
Protected requestBody
- requestBody(method: string, headers: any, resource: Resource, body?: any): Promise<any>
-
Parameters
-
method: string
-
headers: any
-
-
Optional body: any
Returns Promise<any>
Protected validateBinaryParams
-
Parameters
Returns object
-
headers: any
-
-
sourceBucket: string
-
targetBucket: string
Protected validateParams
-
Parameters
Returns object
-
bucket: string
-
headers: any
-
底层请求方法包装