Skip to content

Commit

Permalink
Feat: easy_getinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Leokuma committed Nov 5, 2023
1 parent 77ee30d commit 20119b2
Show file tree
Hide file tree
Showing 5 changed files with 1,018 additions and 568 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ decurl.setSslVerifypeer(0)
decurl.setUrl('https://example.com')

const curlCode = decurl.perform()
const responseCode = decurl.getResponseCode()
const response = decurl.getWriteFunctionData()

console.log(curlCode)

if (response)
if (response) {
console.log(new TextDecoder().decode(response))
}

console.log(responseCode)
console.log(curlCode)

globalCleanup()
```
Expand Down
Loading

0 comments on commit 20119b2

Please sign in to comment.