itty-router
Advanced tools
Comparing version 4.0.19 to 4.0.20
{ | ||
"name": "itty-router", | ||
"version": "4.0.19", | ||
"version": "4.0.20", | ||
"description": "A tiny, zero-dependency router, designed to make beautiful APIs in any environment.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -190,4 +190,6 @@ <p align="center"> | ||
### 4. Only one required argument. The rest is up to you. | ||
We only require one argument in itty - a Request-like object with the following shape: `{ url, method }` (usually a native [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request)). Because itty is not opinionated about [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) creation, there is not "response" argument built in. Every other argument you pass to `route.handle` is given to each handler, in the same order. | ||
We only require one argument in itty - a Request-like object with **url** and **method** properties (usually a native [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request)). Because itty is not opinionated about [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) creation, there is no "response" argument requirement. | ||
**Superpower**: Every argument you pass to `route.handle` is given to each handler, in the same order. | ||
> ### This makes itty one of the most platform-agnostic routers, *period*, as it's able to match up to any platform's signature. | ||
@@ -194,0 +196,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37005
258