Pyr8 User's Manual

« The Filesystem API | HTTP Server API »

HTTP Client API

Pyr8 processes can fetch content from HTTP servers.

The HttpClient Object

Methods

cap(): Capability<HttpClient>
Returns a C++-backed capability object for this client.
get(url: string): string
Returns the content at url or throws an exception.

When the standard library has been loaded, the HttpClient delegate class does not have the cap method.

« The Filesystem API | HTTP Server API »