[Pas2js] http client class

Michael Van Canneyt michael at freepascal.org
Sun Dec 20 10:26:27 CET 2020



On Sun, 20 Dec 2020, Mr Bee via Pas2js wrote:

> Is there any http client class in pas2js? Something like TFPHTTPClient in fpc that supports post, get, etc.

Yes, there is TJSXMLHttpRequest in the web unit.

The more modern approach is TJSWindow.fetch

Both are simply the browser's APIs for doing requests.

Michael.


More information about the Pas2js mailing list