Making HTTP Requests
Klave SDK provides an interface for you to make HTTP requests from within your application in the secure hardware enclave.
Using HTTP from Applications
Klave SDK provides a simple interface to create and send HTTP request from your application.
As querying an HTTP endpoint is not a deterministic operation, it can only be used in the context of a Query. The Query calling the HTTP
interface will not be callable from a Transaction.
The set of operations is the following one:
Class | Operation | Parameters | Returns | Behavior |
---|---|---|---|---|
HTTP | request | HttpRequest | HttpResponse | Execute and HttpRequest and return an HttpResponse |
HTTP | requestAsString | HttpRequest | HttpResponse as string | Execute and HttpRequest and return an HttpResponse as a string |
HTTP | requestAsArrayBuffer | HttpRequest | HttpResponse as ArrayBuffer | Execute and HttpRequest and return an HttpResponse as an ArrayBuffer |