balda 0.0.13 → 0.0.14
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/lib/index.cjs +39 -39
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +7 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +39 -39
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -610,6 +610,8 @@ type CookieMiddlewareOptions = {
|
|
|
610
610
|
* It also contains the methods to send the response.
|
|
611
611
|
*/
|
|
612
612
|
declare class Response$1 {
|
|
613
|
+
static acquire(): Response$1;
|
|
614
|
+
static release(response: Response$1): void;
|
|
613
615
|
static toWebResponse(response: Response$1): globalThis.Response;
|
|
614
616
|
/**
|
|
615
617
|
* The node http response object available only on the node runtime, useful for direct response manipulation
|
|
@@ -629,6 +631,11 @@ declare class Response$1 {
|
|
|
629
631
|
*/
|
|
630
632
|
private body;
|
|
631
633
|
constructor(status?: number);
|
|
634
|
+
/**
|
|
635
|
+
* Reset the response object to initial state for pooling
|
|
636
|
+
* @internal
|
|
637
|
+
*/
|
|
638
|
+
reset(): void;
|
|
632
639
|
/**
|
|
633
640
|
* Set a header for the response
|
|
634
641
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -610,6 +610,8 @@ type CookieMiddlewareOptions = {
|
|
|
610
610
|
* It also contains the methods to send the response.
|
|
611
611
|
*/
|
|
612
612
|
declare class Response$1 {
|
|
613
|
+
static acquire(): Response$1;
|
|
614
|
+
static release(response: Response$1): void;
|
|
613
615
|
static toWebResponse(response: Response$1): globalThis.Response;
|
|
614
616
|
/**
|
|
615
617
|
* The node http response object available only on the node runtime, useful for direct response manipulation
|
|
@@ -629,6 +631,11 @@ declare class Response$1 {
|
|
|
629
631
|
*/
|
|
630
632
|
private body;
|
|
631
633
|
constructor(status?: number);
|
|
634
|
+
/**
|
|
635
|
+
* Reset the response object to initial state for pooling
|
|
636
|
+
* @internal
|
|
637
|
+
*/
|
|
638
|
+
reset(): void;
|
|
632
639
|
/**
|
|
633
640
|
* Set a header for the response
|
|
634
641
|
*/
|