@yurkimus/http-method
v0.0.0
Published
JavaScript's HttpMethod implementation
Downloads
66
Readme
HttpMethod Prototype
JavaScript's HttpMethod implementation
This package utilises HttpMethods
Table of Contents
Installation
npm
npm install @yurkimus/http-method
urls
"@yurkimus/http-method": "npm:@yurkimus/http-method"
"@yurkimus/http-method": "github:yurkimus/http-method"
"@yurkimus/http-method": "https://raw.githubusercontent.com/yurkimus/http-method/main/source/index.js"
Exports
HttpMethod
Definition:
HttpMethod :: HttpMethodInit -> HttpMethod
HttpMethod.of :: HttpMethodInit -> HttpMethod
HttpMethod.get :: HttpMethodInit ->
| (methodText: String, method: String)
| Undefined
HttpMethod.has :: HttpMethodInit -> boolean
Example:
new HttpMethod('Get') // => HttpMethod { method: 'GET', methodText: 'Get' }
HttpMethod.of('Get') // => HttpMethod { method: 'GET', methodText: 'Get' }
HttpMethod.get('Get') // => ['Get', 'GET']
HttpMethod.has('Get') // => true