Necessary Pigeonholing Mechanism

    miniprogram-request
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.4-alpha.0 • Public • Published

    miniprogram-request npm version

    A better Request package for MiniProgram API

    小程序请求封装

    Features

    • Promise
    • Cancelable
    • Queue
    • Wx request params
      • timeout
      • datatype
    • Retry when network failure
    • Configuration
      • BaseUri
      • Authentication
      • ...
    • Interceptors in Lifecycle (only one,modify data or status)
      • transform request data
      • transform response data
    • Listeners
      • On Send (before request data send & after request data transformed)
      • On Response (after request response data transformed)
      • On resolved (before then of Promise)
      • On rejected (before catch of Promise)
      • On abort
      • On complete
    • On Progress?
    • pause/resume

    LifeCircle

    Request Life Circle

    Install

    npm i miniprogram-request@0.0.4-alpha.0

    Version

    0.0.4-alpha.0

    License

    Apache-2.0

    Unpacked Size

    13.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • newfuture