@dunai/http-client
HTTP client
- can use with any serverside frameworks
- can use with @dunai/server
- you can use many custom presets
- you can use middleware
- best for testing
- bases on request.js
[[@dunai/http-client]]
Class [[HttpClient]] and instance of the class [[Http]]
[[@dunai/http-client/testing]]
Class [[HttpClientMock]] and instance of the class [[HttpMock]]
or
you can use [[Http]], this instance of class [[HttpClient]] already configured for testing
TODO
- redirect - code
- sendText
- json
- sendFile
- headers -
- range -