UNPKG
@nodifier/http-mock
Version:
latest (0.0.7)
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A node module to mock http/https requests made for unit testing etc.
@nodifier/http-mock
/
dist
/
json.util.d.ts
9 lines
(8 loc)
•
238 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
IncomingMessage
}
from
"node:http"
;
/** * *
@param
str
*
@returns
*/
export
declare
const
tryParseJson
:
(
str
:
string
) =>
any
;
export
declare
const
setHeadersToJson
:
(
headersObj
:
any
,
clientResponse
:
IncomingMessage
) =>
void
;