Interface Http

interface Http {
    delete(url: string, options?: any): Promise<HttpResponse>;
    get(url: string, options?: any): Promise<HttpResponse>;
    post(url: string, payload: any, options?: any): Promise<HttpResponse>;
    put(url: string, payload: any, options?: any): Promise<HttpResponse>;
}

Methods

Methods

  • Delete Method

    Parameters

    • url: string

      The relative url

    • Optionaloptions: any

      [optional] Option/Configuration object for the http clients configuration

    Returns Promise<HttpResponse>

    request result in case of success or error

  • Get Method

    Parameters

    • url: string

      The relative url

    • Optionaloptions: any

      [optional] Option/Configuration object for the http clients configuration

    Returns Promise<HttpResponse>

    request result in case of success or error

  • Post Method

    Parameters

    • url: string

      The relative url

    • payload: any

      The post data

    • Optionaloptions: any

      [optional] Option/Configuration object for the http clients configuration

    Returns Promise<HttpResponse>

    request result in case of success or error

  • Put Method

    Parameters

    • url: string

      The relative url

    • payload: any

      The put data

    • Optionaloptions: any

      [optional] Option/Configuration object for the http clients configuration

    Returns Promise<HttpResponse>

    request result in case of success or error