Skip to main content

ApiRequest

Handles (sending/building options) requests

Index

Constructors

Properties

Methods

Constructors

publicconstructor

Properties

publicoptions

The options of this request

publicrequests

requests: RequestManager

The request manager instance

Methods

publicbuildOptions

  • buildOptions(): { headers: Record<string, string>; method: GET; url: string }
  • Creates an object containing the options to be passed to the request


    Returns { headers: Record<string, string>; method: GET; url: string }

    • headers: Record<string, string>
    • method: GET
    • url: string

publicmake

  • make(): Promise<Response>
  • Makes a request with the options provided.


    Returns Promise<Response>