libmodulor
Version:
A TypeScript library to create platform-agnostic applications
25 lines (24 loc) • 492 B
JavaScript
import { TString } from '../base/TString.js';
export class THTTPMethod extends TString {
static OPTIONS = [
'CONNECT',
'DELETE',
'GET',
'HEAD',
'OPTIONS',
'PATCH',
'POST',
'PUT',
'TRACE',
];
constructor() {
super();
this.setOptions(THTTPMethod.OPTIONS.map((v) => ({ label: v, value: v })));
}
tName() {
return 'HTTPMethod';
}
example() {
return 'GET';
}
}