Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RequestHandler

This file is part of dHealth dApps Framework shared under LGPL-3.0 Copyright (C) 2022-present dHealth Network, All rights reserved.

package

dHealth dApps Framework

subpackage

Vue Frontend

author

dHealth Network devs@dhealth.foundation

license

LGPL-3.0

Hierarchy

  • RequestHandler

Implemented by

Index

Methods

Methods

  • call(url: string, method: string, body?: any, options?: any, headers?: any): Promise<Record<string, any>>
  • This method should implement the logic to execute a request. It is possible to implement this interface to cover different protocols than HTTP(S).

    access

    public

    async

    Parameters

    • url: string

      The exact URL to be called for the request, e.g. "http://localhost:7903/auth/challenge".

    • method: string

      A HTTP method name, e.g. "GET". Defaults to "GET".

    • Optional body: any

      A configuration object that is forwarded to axios as the request body (POST requests).

    • Optional options: any

      A configuration object that is forwarded to axios as the request options.

    • Optional headers: any

      A configuration object that is forwarded to axios as the request headers.

    Returns Promise<Record<string, any>>

Generated using TypeDoc