文件名称:http-core-constants:http-core常量打字稿javascript版本(来自apache http-components:httpcore)
文件大小:138KB
文件格式:ZIP
更新时间:2024-03-05 14:03:55
TypeScript
节点Http常量 从Java版本org.apache.httpcomponents:httpcore提供http常量:(标准)标头和状态代码 用法 import { HttpHeaders , HttpStatus , HttpRequestMethod } from 'http-core-constants' ; console . log ( HttpHeaders . ACCEPT ) ; // output: Accept console . log ( HttpStatus . SC_OK ) ; // output: 200 (constants with `SC` prefix same as apache core constants) console . log ( HttpStatus . OK ) ; // output: 200 c
【文件预览】:
http-core-constants-master
----.github()
--------renovate.json(296B)
--------workflows()
----yarn.lock(327KB)
----index.ts(24B)
----src()
--------index.ts(103B)
--------http-headers.ts(2KB)
--------__tests__()
--------http-request-methods.ts(202B)
--------http-status.ts(3KB)
----tsconfig.json(481B)
----LICENSE(1KB)
----README.md(1KB)
----.editorconfig(211B)
----.gitignore(4KB)
----CHANGELOG.md(2KB)
----package.json(3KB)