Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd9924a

Browse files
committed
docs: added docs for debugging with xhook and cabin (closes#72,closes#13)
1 parent315271c commitfd9924a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Modern [fetch-based][fetch] alternative to [axios][]/[superagent][]/[request][].
2525
*[Usage](#usage)
2626
*[Example](#example)
2727
*[API](#api)
28+
*[Debugging](#debugging)
2829
*[Common Issues](#common-issues)
2930
*[Required Features](#required-features)
3031
*[Frequently Asked Questions](#frequently-asked-questions)
@@ -313,6 +314,12 @@ Upon being invoked, `Frisbee` returns an object with the following chainable met
313314
* The `request`/`requestError` functions will run in the same order `ONE->TWO->THREE`.
314315
* The `response`/`responseError` functions will run in reversed order `THREE->TWO->ONE`.
315316
317+
### Debugging
318+
319+
If you want to debug request and responses, we recommend to use [xhook][].
320+
321+
We also **highly recommend** to [use CabinJS as your Node.js and JavaScript logging utility][cabin] (see [Automatic Request Logging](https://cabinjs.com/#/?id=automatic-request-logging) for complete examples).
322+
316323
### Common Issues
317324
318325
* If you're using`node-fetch`, you need`node-fetch@v1.5.3+` to use`form-data`with filesproperly (due to [bitinn/node-fetch#102](https://github.com/bitinn/node-fetch/issues/102))
@@ -522,3 +529,7 @@ Therefore we created `frisbee` to serve as our API glue, and hopefully it'll ser
522529
[babel-polyfill]: https://babeljs.io/docs/en/babel-polyfill
523530

524531
[eslint-plugin-compat]: https://github.com/amilajack/eslint-plugin-compat
532+
533+
[xhook]: https://github.com/jpillora/xhook
534+
535+
[cabin]: https://cabinjs.com

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp