You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
452 B
TypeScript
17 lines
452 B
TypeScript
3 years ago
|
export type HTTPMethod =
|
||
|
| 'get' | 'GET'
|
||
|
| 'delete' | 'DELETE'
|
||
|
| 'head' | 'HEAD'
|
||
|
| 'options' | 'OPTIONS'
|
||
|
| 'post' | 'POST'
|
||
|
| 'put' | 'PUT'
|
||
|
| 'patch' | 'PATCH'
|
||
|
| 'purge' | 'PURGE'
|
||
|
| 'link' | 'LINK'
|
||
|
| 'unlink' | 'UNLINK'
|
||
|
|
||
|
export interface RestCalls {
|
||
|
fetchData(url:string, method?:HTTPMethod, headers?:any):Promise<string>;
|
||
|
sendData(url:string, method:HTTPMethod, data:string, headers?:any):Promise<string>;
|
||
|
}
|