Functionrequest

  • HTTP(S) request

    Parameters

    • URI: string | URL | Url
    • method: string = 'GET'
    • Optionalheader: Record<string, any>
    • Optionalbody: string | Record<string, any> | Buffer

    Returns Promise<IncomingMessage>