UNPKG

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
import {Enum} from "../../Enum"; export class HttpMethod extends Enum{ @Enum.args( ) static readonly GET:HttpMethod; @Enum.args( ) static readonly POST:HttpMethod; @Enum.args( ) static readonly PUT:HttpMethod; @Enum.args( ) static readonly PURGE:HttpMethod; @Enum.args( ) static readonly PATCH:HttpMethod; @Enum.args( ) static readonly DELETE:HttpMethod; @Enum.args( ) static readonly HEAD:HttpMethod; @Enum.args( ) static readonly COPY:HttpMethod; @Enum.args( ) static readonly LINK:HttpMethod; @Enum.args( ) static readonly OPTIONS:HttpMethod; private constructor() {super();} public getMethod():string{ return this.name(); } } Object.package(this);