get contextType

This commit is contained in:
Maren Süwer
2018-10-25 13:45:52 +02:00
parent 20df283b08
commit c7684b835a
3 changed files with 56 additions and 11 deletions

View File

@@ -48,8 +48,12 @@ class ApiClient {
return this.httpRequestWithJSONBody("PUT", url, contentType, payload);
}
head(url: string, payload: any, contentType: string = "application/json") {
return this.httpRequestWithJSONBody("HEAD", url, contentType, payload);
head(url: string) {
let options: RequestOptions = {
method: "HEAD"
};
options = Object.assign(options, fetchOptions);
return fetch(createUrl(url), options).then(handleStatusCode);
}
delete(url: string): Promise<Response> {