@stacksjs/http 0.58.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/dist/index.js +65 -0
- package/package.json +52 -0
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Stacks Cache
|
|
2
|
+
|
|
3
|
+
wip
|
|
4
|
+
|
|
5
|
+
## โ๏ธ Features
|
|
6
|
+
|
|
7
|
+
wip
|
|
8
|
+
|
|
9
|
+
- โก๏ธ
|
|
10
|
+
|
|
11
|
+
wip
|
|
12
|
+
|
|
13
|
+
## ๐ค Usage
|
|
14
|
+
|
|
15
|
+
wip
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
bun install -d @stacksjs/http
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Now, you can use it in your project:
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import * as http from '@stacksjs/http'
|
|
25
|
+
|
|
26
|
+
// wip
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Learn more in the docs.
|
|
30
|
+
|
|
31
|
+
## ๐งช Testing
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
bun test
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## ๐ Changelog
|
|
38
|
+
|
|
39
|
+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
|
|
40
|
+
|
|
41
|
+
## ๐ Contributing
|
|
42
|
+
|
|
43
|
+
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
|
|
44
|
+
|
|
45
|
+
## ๐ Community
|
|
46
|
+
|
|
47
|
+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
|
|
48
|
+
|
|
49
|
+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
|
|
50
|
+
|
|
51
|
+
For casual chit-chat with others using this package:
|
|
52
|
+
|
|
53
|
+
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
|
|
54
|
+
|
|
55
|
+
## ๐ License
|
|
56
|
+
|
|
57
|
+
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
|
|
58
|
+
|
|
59
|
+
Made with ๐
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
var Response;
|
|
3
|
+
(function(Response2) {
|
|
4
|
+
Response2[Response2["HTTP_CONTINUE"] = 100] = "HTTP_CONTINUE";
|
|
5
|
+
Response2[Response2["HTTP_SWITCHING_PROTOCOLS"] = 101] = "HTTP_SWITCHING_PROTOCOLS";
|
|
6
|
+
Response2[Response2["HTTP_OK"] = 200] = "HTTP_OK";
|
|
7
|
+
Response2[Response2["HTTP_CREATED"] = 201] = "HTTP_CREATED";
|
|
8
|
+
Response2[Response2["HTTP_ACCEPTED"] = 202] = "HTTP_ACCEPTED";
|
|
9
|
+
Response2[Response2["HTTP_NON_AUTHORITATIVE_INFORMATION"] = 203] = "HTTP_NON_AUTHORITATIVE_INFORMATION";
|
|
10
|
+
Response2[Response2["HTTP_NO_CONTENT"] = 204] = "HTTP_NO_CONTENT";
|
|
11
|
+
Response2[Response2["HTTP_RESET_CONTENT"] = 205] = "HTTP_RESET_CONTENT";
|
|
12
|
+
Response2[Response2["HTTP_PARTIAL_CONTENT"] = 206] = "HTTP_PARTIAL_CONTENT";
|
|
13
|
+
Response2[Response2["HTTP_MULTIPLE_CHOICES"] = 300] = "HTTP_MULTIPLE_CHOICES";
|
|
14
|
+
Response2[Response2["HTTP_MOVED_PERMANENTLY"] = 301] = "HTTP_MOVED_PERMANENTLY";
|
|
15
|
+
Response2[Response2["HTTP_FOUND"] = 302] = "HTTP_FOUND";
|
|
16
|
+
Response2[Response2["HTTP_SEE_OTHER"] = 303] = "HTTP_SEE_OTHER";
|
|
17
|
+
Response2[Response2["HTTP_NOT_MODIFIED"] = 304] = "HTTP_NOT_MODIFIED";
|
|
18
|
+
Response2[Response2["HTTP_USE_PROXY"] = 305] = "HTTP_USE_PROXY";
|
|
19
|
+
Response2[Response2["HTTP_UNUSED"] = 306] = "HTTP_UNUSED";
|
|
20
|
+
Response2[Response2["HTTP_TEMPORARY_REDIRECT"] = 307] = "HTTP_TEMPORARY_REDIRECT";
|
|
21
|
+
Response2[Response2["HTTP_PERMANENT_REDIRECT"] = 308] = "HTTP_PERMANENT_REDIRECT";
|
|
22
|
+
Response2[Response2["HTTP_BAD_REQUEST"] = 400] = "HTTP_BAD_REQUEST";
|
|
23
|
+
Response2[Response2["HTTP_UNAUTHORIZED"] = 401] = "HTTP_UNAUTHORIZED";
|
|
24
|
+
Response2[Response2["HTTP_PAYMENT_REQUIRED"] = 402] = "HTTP_PAYMENT_REQUIRED";
|
|
25
|
+
Response2[Response2["HTTP_FORBIDDEN"] = 403] = "HTTP_FORBIDDEN";
|
|
26
|
+
Response2[Response2["HTTP_NOT_FOUND"] = 404] = "HTTP_NOT_FOUND";
|
|
27
|
+
Response2[Response2["HTTP_METHOD_NOT_ALLOWED"] = 405] = "HTTP_METHOD_NOT_ALLOWED";
|
|
28
|
+
Response2[Response2["HTTP_NOT_ACCEPTABLE"] = 406] = "HTTP_NOT_ACCEPTABLE";
|
|
29
|
+
Response2[Response2["HTTP_PROXY_AUTHENTICATION_REQUIRED"] = 407] = "HTTP_PROXY_AUTHENTICATION_REQUIRED";
|
|
30
|
+
Response2[Response2["HTTP_REQUEST_TIMEOUT"] = 408] = "HTTP_REQUEST_TIMEOUT";
|
|
31
|
+
Response2[Response2["HTTP_CONFLICT"] = 409] = "HTTP_CONFLICT";
|
|
32
|
+
Response2[Response2["HTTP_GONE"] = 410] = "HTTP_GONE";
|
|
33
|
+
Response2[Response2["HTTP_LENGTH_REQUIRED"] = 411] = "HTTP_LENGTH_REQUIRED";
|
|
34
|
+
Response2[Response2["HTTP_PRECONDITION_FAILED"] = 412] = "HTTP_PRECONDITION_FAILED";
|
|
35
|
+
Response2[Response2["HTTP_REQUEST_ENTITY_TOO_LARGE"] = 413] = "HTTP_REQUEST_ENTITY_TOO_LARGE";
|
|
36
|
+
Response2[Response2["HTTP_REQUEST_URI_TOO_LONG"] = 414] = "HTTP_REQUEST_URI_TOO_LONG";
|
|
37
|
+
Response2[Response2["HTTP_UNSUPPORTED_MEDIA_TYPE"] = 415] = "HTTP_UNSUPPORTED_MEDIA_TYPE";
|
|
38
|
+
Response2[Response2["HTTP_REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "HTTP_REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
39
|
+
Response2[Response2["HTTP_EXPECTATION_FAILED"] = 417] = "HTTP_EXPECTATION_FAILED";
|
|
40
|
+
Response2[Response2["HTTP_I_AM_A_TEAPOT"] = 418] = "HTTP_I_AM_A_TEAPOT";
|
|
41
|
+
Response2[Response2["HTTP_MISDIRECTED_REQUEST"] = 421] = "HTTP_MISDIRECTED_REQUEST";
|
|
42
|
+
Response2[Response2["HTTP_UNPROCESSABLE_ENTITY"] = 422] = "HTTP_UNPROCESSABLE_ENTITY";
|
|
43
|
+
Response2[Response2["HTTP_LOCKED"] = 423] = "HTTP_LOCKED";
|
|
44
|
+
Response2[Response2["HTTP_FAILED_DEPENDENCY"] = 424] = "HTTP_FAILED_DEPENDENCY";
|
|
45
|
+
Response2[Response2["HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL"] = 425] = "HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL";
|
|
46
|
+
Response2[Response2["HTTP_UPGRADE_REQUIRED"] = 426] = "HTTP_UPGRADE_REQUIRED";
|
|
47
|
+
Response2[Response2["HTTP_PRECONDITION_REQUIRED"] = 428] = "HTTP_PRECONDITION_REQUIRED";
|
|
48
|
+
Response2[Response2["HTTP_TOO_MANY_REQUESTS"] = 429] = "HTTP_TOO_MANY_REQUESTS";
|
|
49
|
+
Response2[Response2["HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE";
|
|
50
|
+
Response2[Response2["HTTP_UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "HTTP_UNAVAILABLE_FOR_LEGAL_REASONS";
|
|
51
|
+
Response2[Response2["HTTP_INTERNAL_SERVER_ERROR"] = 500] = "HTTP_INTERNAL_SERVER_ERROR";
|
|
52
|
+
Response2[Response2["HTTP_NOT_IMPLEMENTED"] = 501] = "HTTP_NOT_IMPLEMENTED";
|
|
53
|
+
Response2[Response2["HTTP_BAD_GATEWAY"] = 502] = "HTTP_BAD_GATEWAY";
|
|
54
|
+
Response2[Response2["HTTP_SERVICE_UNAVAILABLE"] = 503] = "HTTP_SERVICE_UNAVAILABLE";
|
|
55
|
+
Response2[Response2["HTTP_GATEWAY_TIMEOUT"] = 504] = "HTTP_GATEWAY_TIMEOUT";
|
|
56
|
+
Response2[Response2["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
57
|
+
Response2[Response2["HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL"] = 506] = "HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL";
|
|
58
|
+
Response2[Response2["HTTP_INSUFFICIENT_STORAGE"] = 507] = "HTTP_INSUFFICIENT_STORAGE";
|
|
59
|
+
Response2[Response2["HTTP_LOOP_DETECTED"] = 508] = "HTTP_LOOP_DETECTED";
|
|
60
|
+
Response2[Response2["HTTP_NOT_EXTENDED"] = 510] = "HTTP_NOT_EXTENDED";
|
|
61
|
+
Response2[Response2["HTTP_NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "HTTP_NETWORK_AUTHENTICATION_REQUIRED";
|
|
62
|
+
})(Response || (Response = {}));
|
|
63
|
+
export {
|
|
64
|
+
Response
|
|
65
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stacksjs/http",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.58.19",
|
|
5
|
+
"description": "Stacks HTTP methods.",
|
|
6
|
+
"author": "Chris Breuer",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
9
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/src/http#readme",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
13
|
+
"directory": "./storage/framework/core/src/http"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/stacksjs/stacks/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"http",
|
|
20
|
+
"utilities",
|
|
21
|
+
"functions",
|
|
22
|
+
"bun",
|
|
23
|
+
"stacks"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"bun": "./src/index.ts",
|
|
28
|
+
"import": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./*": {
|
|
31
|
+
"bun": "./src/*",
|
|
32
|
+
"import": "./dist/*"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"module": "dist/index.js",
|
|
36
|
+
"types": "dist/index.d.ts",
|
|
37
|
+
"contributors": [
|
|
38
|
+
"Chris Breuer <chris@stacksjs.org>"
|
|
39
|
+
],
|
|
40
|
+
"files": [
|
|
41
|
+
"README.md",
|
|
42
|
+
"dist"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "bun --bun build.ts",
|
|
46
|
+
"typecheck": "bun --bun tsc --noEmit",
|
|
47
|
+
"prepublishOnly": "bun --bun run build"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@stacksjs/development": "workspace:*"
|
|
51
|
+
}
|
|
52
|
+
}
|