mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 21:45:43 +01:00
get contextType
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user