Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noxify/honojs-got
https://github.com/noxify/honojs-got
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noxify/honojs-got
- Owner: noxify
- Created: 2024-02-06T11:09:54.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-07T14:08:15.000Z (11 months ago)
- Last Synced: 2024-10-09T17:43:47.226Z (3 months ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
### 1. Start the dev Server
```
npm run dev
```### 2. Run with retry
```
npm run retry
```In the log for the dev server, you will see something like this:
```
Server is running on port 3000
<-- GET /retry
--> GET /retry 400 1ms
<-- GET /retry
--> GET /retry 400 1ms
<-- GET /retry
--> GET /retry 400 1ms
```In the logs for the script execustion, you will see the following log entry multiple times ( in our case it's 3x):
```
Request: GET http://localhost:3000/retry
Response: GET 400 /retry %s
Request: GET http://localhost:3000/retry
Response: GET 400 /retry %s
Request: GET http://localhost:3000/retry
Response: GET 400 /retry %s
```### 2. Run with noretry
```
npm run noretry
```In the log for the dev server, you will see something like this:
```
Server is running on port 3000
<-- GET /noretry
--> GET /noretry 400 4ms
```In the logs for the script execustion, you will see the following log entry only once:
```
Request: GET http://localhost:3000/noretry
Response: GET 400 /noretry %s
```### 3. Run with extend and norety
```
npm run extend
```In the log for the dev server, you will see something like this:
```
Server is running on port 3000
<-- GET /noretry
--> GET /noretry 400 4ms
```In the logs for the script execustion, you will see the following log entry only once:
```
Request: GET http://localhost:3000/noretry
Response: GET 400 /noretry %s
```