Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NosClientAuthExt

Hierarchy

Index

Constructors

constructor

Properties

options

options: NosClientOptions & object

Methods

Private _request

  • _request(method: string, headers: any, resource: Resource, body?: any): Promise<Response>
  • 底层请求方法包装

    Parameters

    • method: string

      请求方法

    • headers: any

      头信息

    • resource: Resource

      资源信息,也会序列化到 Url 上面

    • Optional body: any

    Returns Promise<Response>

createToken

  • 创建上传凭证,返回 Token 对象,里面有 putPolicysign 字段,前端可以通过此构建上传 Token

    Parameters

    Returns Token

createTokenString

  • 创建上传凭证字符串,对 createToken 的简单包装,直接返回 accessKey:sign:putPolicy 字符串

    Parameters

    Returns string

Protected handleRequestError

  • handleRequestError(resp: Response): Promise<Response>

Protected request

  • request(method: string, headers: any, resource: Resource, body?: any): Promise<Response>

Protected requestBody

  • requestBody(method: string, headers: any, resource: Resource, body?: any): Promise<any>

Protected validateBinaryParams

Protected validateParams

Generated using TypeDoc