UNPKG
workcraft-js
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
1.1.0
1.0.0
0.5.20
0.5.18
0.5.16
0.5.15
0.5.14
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
Node module for Workcraft Workers
workcraft-js
/
tests
/
node_modules
/
http-proxy-middleware
/
dist
/
handlers
/
fix-request-body.d.ts
9 lines
(8 loc)
•
285 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
type
*
as
http
from
'http'
;
export
type
BodyParserLikeRequest
= http.
IncomingMessage
& {
body
:
any
; };
/** * Fix proxied body if bodyParser is involved. */
export
declare
function
fixRequestBody<
TReq
= http.
IncomingMessage
>(
proxyReq
: http.
ClientRequest
,
req
:
TReq
):
void
;