Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IHttpClient

preview

This API is in preview and not ready for production use. Expect breaking changes in the future. The HTTP client interface. This is a subset of the Aurelia HTTPClient class.

Hierarchy

  • IHttpClient

Index

Methods

Methods

get

  • Sends an HTTP GET request.

    Parameters

    • url: string

      The target URL.

    • Optional params: any
    • Optional traditional: boolean

    Returns Promise<IHttpResponseMessage>

    A cancellable promise object.

post

  • Sends an HTTP POST request.

    Parameters

    • url: string

      The target URL.

    • content: any

      The request payload.

    Returns Promise<IHttpResponseMessage>

    A cancellable promise object.

put

  • Sends an HTTP PUT request.

    Parameters

    • url: string

      The target URL.

    • content: any

      The request payload.

    Returns Promise<IHttpResponseMessage>

    A cancellable promise object.