lib-utils-ts
Version:
<img src="https://img.shields.io/npm/v/lib-utils-ts"/> <img src="https://img.shields.io/snyk/vulnerabilities/npm/lib-utils-ts"/> <img src="https://img.shields.io/npm/l/lib-utils-ts"/> <img src="https://img.shields.io/github/languages/top/devGnode/lib-util
20 lines (16 loc) • 713 B
text/typescript
import {Enum} from "../../Enum";
export class HttpMethod extends Enum{
.args( ) static readonly GET:HttpMethod;
.args( ) static readonly POST:HttpMethod;
.args( ) static readonly PUT:HttpMethod;
.args( ) static readonly PURGE:HttpMethod;
.args( ) static readonly PATCH:HttpMethod;
.args( ) static readonly DELETE:HttpMethod;
.args( ) static readonly HEAD:HttpMethod;
.args( ) static readonly COPY:HttpMethod;
.args( ) static readonly LINK:HttpMethod;
.args( ) static readonly OPTIONS:HttpMethod;
private constructor() {super();}
public getMethod():string{ return this.name(); }
}
Object.package(this);