balda 0.0.12 → 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 +45 -45
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +8 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +45 -45
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -610,6 +610,9 @@ 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;
|
|
615
|
+
static toWebResponse(response: Response$1): globalThis.Response;
|
|
613
616
|
/**
|
|
614
617
|
* The node http response object available only on the node runtime, useful for direct response manipulation
|
|
615
618
|
* @warning undefined on other runtimes since they already use Web API Response object
|
|
@@ -628,6 +631,11 @@ declare class Response$1 {
|
|
|
628
631
|
*/
|
|
629
632
|
private body;
|
|
630
633
|
constructor(status?: number);
|
|
634
|
+
/**
|
|
635
|
+
* Reset the response object to initial state for pooling
|
|
636
|
+
* @internal
|
|
637
|
+
*/
|
|
638
|
+
reset(): void;
|
|
631
639
|
/**
|
|
632
640
|
* Set a header for the response
|
|
633
641
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -610,6 +610,9 @@ 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;
|
|
615
|
+
static toWebResponse(response: Response$1): globalThis.Response;
|
|
613
616
|
/**
|
|
614
617
|
* The node http response object available only on the node runtime, useful for direct response manipulation
|
|
615
618
|
* @warning undefined on other runtimes since they already use Web API Response object
|
|
@@ -628,6 +631,11 @@ declare class Response$1 {
|
|
|
628
631
|
*/
|
|
629
632
|
private body;
|
|
630
633
|
constructor(status?: number);
|
|
634
|
+
/**
|
|
635
|
+
* Reset the response object to initial state for pooling
|
|
636
|
+
* @internal
|
|
637
|
+
*/
|
|
638
|
+
reset(): void;
|
|
631
639
|
/**
|
|
632
640
|
* Set a header for the response
|
|
633
641
|
*/
|