RequestBuilder | @here/olp-sdk-ts
Class RequestBuilder Abstract
Hierarchy
- RequestBuilder
Index
Constructors
constructor
Constructs a new RequestBuilder.
Parameters
baseUrl: string
The base URL of the service.
Returns RequestBuilder
Properties
Readonly base Url
Methods
Abstract download
Implement this function to download the given url as JSON object.
Type Parameters
T
Parameters
url: string
The URL to download.
Optional init: RequestOptions
Returns Promise<T>
Abstract download Blob
Implement this function to download the given url as Blob object.
Parameters
url: string
The URL to download.
Optional init: RequestOptions
Returns Promise<Response>
request
Helper method to download the resource.
Type Parameters
T
Parameters
urlObj: UrlBuilder
the URL to fetch.
Optional init: RequestOptions
Returns Promise<T>
request Blob
Helper method to download the resource.
Parameters
urlObj: UrlBuilder
the URL to fetch.
Optional init: RequestOptions
Returns Promise<Response>
Generated using TypeDoc
Abstract class used for building requests to a REST API.