Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NosBaseClient

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>

Protected handleRequestError

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

    • resp: Response

    Returns Promise<Response>

Protected request

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

    • method: string
    • headers: any
    • resource: Resource
    • Optional body: any

    Returns Promise<Response>

Protected requestBody

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

    • method: string
    • headers: any
    • resource: Resource
    • Optional body: any

    Returns Promise<any>

Protected validateBinaryParams

Protected validateParams

Generated using TypeDoc