mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 05:55:44 +01:00
add head request
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user