Interface ConfigurableRequestFunction

The main interface of 'apprt-request'.

Hierarchy

  • A function executing a request function.

    Parameters

    Returns Promise<any>

Properties

config: Config

Provides access to configuration.

Executes a DELETE request (sets method=DELETE in the options)

Executes a GET request (sets method=GET in the options)

getProxiedUrl: ((url, options?) => string)

Type declaration

    • (url, options?): string
    • Utility to create a 'proxied' url. By default it returns the input url, if no proxy rule applies. If the flag 'force' is enabled it will wrap the url with the default proxy.

      Parameters

      • url: string
      • Optional options: {
            force?: boolean;
        }
        • Optional force?: boolean

      Returns string

Executes a POST request (sets method=POST in the options)

Executes a PUT request (sets method=PUT in the options)

Generated using TypeDoc