Interface: IHttpClient

Experimental

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.

Methods

get()

get(url, params?, traditional?): Promise<IHttpResponseMessage>

Experimental

Parameters

url: string

The target URL.

params?: any

traditional?: boolean

Returns

Promise<IHttpResponseMessage>

A cancellable promise object.


post()

post(url, content): Promise<IHttpResponseMessage>

Experimental

Parameters

url: string

The target URL.

content: any

The request payload.

Returns

Promise<IHttpResponseMessage>

A cancellable promise object.


put()

put(url, content): Promise<IHttpResponseMessage>

Experimental

Parameters

url: string

The target URL.

content: any

The request payload.

Returns

Promise<IHttpResponseMessage>

A cancellable promise object.