1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00

PLUGINS: Document using config.user_agent for User-Agent

And, really, just use `timeout_session` anyway, which does this.
This commit is contained in:
Athanasius 2023-01-18 11:48:27 +00:00
parent 8b9379a89e
commit 27e39a05d8
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -126,8 +126,11 @@ Live galaxy. Note the implementation details of this. At time of writing it
performs a `semantic_version` >= check.
`import timeout_session` - provides a method called `new_session` that creates
a requests.session with a default timeout on all requests. Recommended to
reduce noise in HTTP requests
a `requests.session` with a default timeout on all requests. Recommended to
reduce noise in HTTP requests. This also ensures your requests use the central
"User-Agent" header value. If you do have reason to make a request otherwise
please ensure you use the `config.user_agent` value as the User-Agent (you can
append a string to call out your plugin if you wish).
`from ttkHyperlinkLabel import HyperlinkLabel` and `import myNotebook as nb` -
For creating UI elements.