const response = await dahr.startProxy({
url: "https://api.example.com/data",
method: EnumWeb2Methods.GET
}) as IAttestationWithResponse
// Access HTTP response data
console.log(response.web2Response.status) // 200
console.log(response.web2Response.data) // Response body
// Access attestation data
console.log(response.hash) // Request hash
console.log(response.timestamp) // Attestation time
console.log(response.valid) // Attestation validity
Type Checking
// Type guard for checking response type
function isAttestationResponse(response: any): response is IAttestationWithResponse {
return 'web2Response' in response && 'hash' in response && 'valid' in response;
}