Making Requests
GET Requests
const response = await dahr.startProxy({
url: "https://api.example.com",
method: "GET",
})
POST Requests
const response = await dahr.startProxy({
url: "https://api.example.com",
method: "POST",
options: {
payload: {
key: "value"
},
headers: {
Accept: "application/json"
}
}
})
Custom Headers
const response = await dahr.startProxy({
url: "https://api.example.com",
method: "GET",
options: {
payload: {
key: "value"
},
headers: {
Authorization: "Bearer token",
"Custom-Header": "value"
}
}
})
Last updated