From 549a007683e38fd13da72be7b2f5ee1adb1484c5 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 9 Oct 2020 16:13:41 -0700 Subject: [PATCH] Clarify that datasette.client HTTP calls are simulated --- docs/internals.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/internals.rst b/docs/internals.rst index 0fdd943c..a04de9fe 100644 --- a/docs/internals.rst +++ b/docs/internals.rst @@ -333,7 +333,7 @@ You can try out these messages (including the different visual styling of the th datasette.client ---------------- -Plugins can make internal HTTP requests to the Datasette instance within which they are running. This ensures that all of Datasette's external JSON APIs are also available to plugins. +Plugins can make internal simulated HTTP requests to the Datasette instance within which they are running. This ensures that all of Datasette's external JSON APIs are also available to plugins, while avoiding the overhead of making an external HTTP call to access those APIs. The ``datasette.client`` object is a wrapper around the `HTTPX Python library `__, providing an async-friendly API that is similar to the widely used `Requests library `__.