mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 17:56:17 +01:00
add head request
This commit is contained in:
@@ -48,6 +48,10 @@ class ApiClient {
|
|||||||
return this.httpRequestWithJSONBody("PUT", url, contentType, payload);
|
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> {
|
delete(url: string): Promise<Response> {
|
||||||
let options: RequestOptions = {
|
let options: RequestOptions = {
|
||||||
method: "DELETE"
|
method: "DELETE"
|
||||||
|
|||||||
Reference in New Issue
Block a user