Skip to content

Commit e34a7c9

Browse files
committed
readme upd
1 parent e0584c6 commit e34a7c9

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ const myFetch = configureFetch(
134134
Returns a middleware that will accumulate cookies. Useful on the server.
135135

136136
```ts
137-
import { configureFetch, applyMiddleware, createCookieStore } from '@krutoo/fetch-tools';
137+
import { configureFetch, applyMiddleware } from '@krutoo/fetch-tools';
138138
import { cookie } from '@krutoo/fetch-tools/middleware';
139+
import { createCookieStore } from '@krutoo/fetch-tools/utils';
139140

140141
const store = createCookieStore();
141142

@@ -149,11 +150,11 @@ await fetch2('https://www.world.com/');
149150
console.log(store.getCookies());
150151
```
151152

152-
## Server support
153+
## Server utilities
153154

154155
You can use utils for simply configure your HTTP server.
155156

156-
In Bun:
157+
**In Bun:**
157158

158159
```ts
159160
import { router, route } from '@krutoo/fetch-tools';
@@ -168,7 +169,7 @@ Bun.serve({
168169
});
169170
```
170171

171-
In Deno:
172+
**In Deno:**
172173

173174
```ts
174175
import { serve } from 'https://deno.land/std@0.182.0/http/server.ts';
@@ -184,9 +185,13 @@ await serve(
184185
);
185186
```
186187

187-
In Node.js:
188+
**In Node.js:**
189+
190+
Currently there is no builtin server implementation based on fetch API interfaces.
191+
192+
Perhaps the implementation of such a server will appear as a separate package.
188193

189-
> Coming soon...
194+
### Middleware for servers
190195

191196
You can use middleware for server handlers too:
192197

0 commit comments

Comments
 (0)