add head request

This commit is contained in:
Maren Süwer
2018-10-15 16:45:44 +02:00
parent 78260a708f
commit af81f239e1

View File

@@ -48,6 +48,10 @@ 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);
}
delete(url: string): Promise<Response> {
let options: RequestOptions = {
method: "DELETE"