{"library":"http-core-constants","type":"library","category":null,"description":"The `http-core-constants` library provides a JavaScript/TypeScript port of standard HTTP constants, encompassing headers, status codes, and request methods. These constants are derived directly from the `org.apache.httpcomponents:httpcore` Java library, offering a familiar set of values for developers migrating from Java environments or seeking a standardized set of HTTP definitions. The current stable version is 1.3.0, released in February 2020. The package has seen no updates since then, indicating an abandoned status. A key differentiator is its inclusion of `SC_` prefixed status codes (mirroring Apache's Java library) alongside non-prefixed, more readable alternatives. It primarily serves to eliminate 'magic strings' in HTTP-related code, promoting type safety and maintainability in TypeScript projects by exposing these constants as enums.","language":"javascript","status":"abandoned","version":"1.3.0","tags":["javascript","apache","http-components","http-core","constants"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-core-constants","imports":["import { HttpHeaders } from 'http-core-constants';","import { HttpStatus } from 'http-core-constants';","import { HttpRequestMethod } from 'http-core-constants';"]},{"cmd":"yarn add http-core-constants","imports":[]},{"cmd":"pnpm add http-core-constants","imports":[]}],"homepage":null,"github":"https://github.com/aquariuslt/http-core-constants","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-core-constants","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/http-core-constants/compatibility"}}