Skip to content

Commit

Permalink
Clarified introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbankhead committed Feb 4, 2017
1 parent fe702d1 commit 100de84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ const jetta = require('jetta')

jetta.request('altusaero.com', (error, results) => {
if (error !== null) {
// Results contains useful error details
// Results contains useful error details to help debug
console.dir(results.error)
throw error
} else {
// Results contain useful pieces of data - including response time, response headers, decompression info, and more
const responseTime = results.time.response
const html = results.data.toString()
// '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">...
// html = '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">...
}
})

Expand Down

0 comments on commit 100de84

Please sign in to comment.