Panda
Panda
Alternatively, make a wrapper over fetch/request, but this does not solve the problem with the fact that Buffer[] -> Headers are parsed for each request throughout undici and all interceptors...
```ts import { scheduler } from 'node:timers/promises'; import undici, { Dispatcher, getGlobalDispatcher } from 'undici'; type RequestInterceptor = ( request: Dispatcher.DispatchOptions, next: () => Promise ) => Promise; function composeInterceptors(interceptors:...
headers: { 'content-length': '0' } [Symbol(kContentLength)]: 0 ``` request: GET / HTTP/1.1 host: myhost.local connection: keep-alive response: HTTP/1.1 200 content-length: 0 { statusCode: 200, headers: { 'content-length': '0' }, trailers:...
Why create a Readable object for the response if there is none. You can just specify null. I don't understand why to perform these unnecessary operations, for answers without a...
It was also impossible to implement AsyncDisposable for DispatcherBase. That would solve the try finally problem. This would solve the problem of cleaning up resources without using try finally. ```ts...
I made a mistake with the package, I need to add a single/double linked list (Queue, Deque) to @std/data-structures
The native implementation of Promise does not provide the property "state", this implementation helps to get the current state of the promise
What do we need to solve this problem? 1) Make a header structure and use it only inside the core 2) When creating a core Request instance, immediately assemble the...
Caching the finished header string greatly reduces the load ```ts import { bench, run, summary } from 'mitata'; import { HTTPHeaders } from './HTTPHeaders.ts'; const arr = Array.from({ length: 20...
we need a similar approach, only write the request body separately, since there may be large buffer, streams, generators, and so on that do not need to be dumped into...