Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,11 @@ app.listen(3000);
const Koa = require('koa');
const riviere = require('riviere');

// this is just an example, you can use any http library
const rp = require('request-promise');

const app = new Koa();

app.use(riviere());
app.use(async function(ctx) {
await rp({
uri: 'https://www.google.com',
await fetch('https://www.google.com', {
// You can include the x-riviere-id header
// to trace the request's context inside which
// the external request is made
Expand Down
Loading
Loading