rajt 0.0.52 → 0.0.53
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 +4 -4
- package/package.json +1 -1
- package/src/http.ts +16 -0
- package/src/routes.ts +0 -1
package/README.md
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
## Packages
|
|
13
13
|
|
|
14
|
-
| Package
|
|
15
|
-
|
|
|
16
|
-
| [rajt](https://github.com/attla/rajt)
|
|
17
|
-
| [create-rajt](https://github.com/attla/create-rajt)
|
|
14
|
+
| Package | Version |
|
|
15
|
+
| --------------------------------------------------- | :----------------------------------------------------------------------------- |
|
|
16
|
+
| [rajt](https://github.com/attla/rajt) |  |
|
|
17
|
+
| [create-rajt](https://github.com/attla/create-rajt) |  |
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
20
|
|
package/package.json
CHANGED
package/src/http.ts
CHANGED
|
@@ -32,6 +32,22 @@ export function Delete(path = '/') {
|
|
|
32
32
|
return method('delete', path)
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
export function Head(path = '/') {
|
|
36
|
+
return method('head', path)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function Options(path = '/') {
|
|
40
|
+
return method('options', path)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function Connect(path = '/') {
|
|
44
|
+
return method('connect', path)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function Trace(path = '/') {
|
|
48
|
+
return method('trace', path)
|
|
49
|
+
}
|
|
50
|
+
|
|
35
51
|
export function Middleware(...handlers: MiddlewareType[]) {
|
|
36
52
|
return function (target: any) {
|
|
37
53
|
mergeMiddleware(target, ...handlers)
|