diff --git a/docs/tutorials/webnotifier.rst b/docs/tutorials/webnotifier.rst
index 7813f0b6..b069fe37 100644
--- a/docs/tutorials/webnotifier.rst
+++ b/docs/tutorials/webnotifier.rst
@@ -50,7 +50,7 @@ end, you need to set up an asynchronous HTTP client using the httpx_ library::
async def run(self) -> None:
async with httpx.AsyncClient() as http:
while True:
- async with http.get("http://imgur.com") as resp:
+ async with http.get("https://imgur.com") as resp:
await resp.text()
await anyio.sleep(10)
@@ -58,7 +58,7 @@ end, you need to set up an asynchronous HTTP client using the httpx_ library::
if __name__ == "__main__":
run_application(ApplicationComponent(), logging=logging.DEBUG)
-Great, so now the code fetches the contents of ``http://imgur.com`` at 10 second
+Great, so now the code fetches the contents of ``https://imgur.com`` at 10 second
intervals. But this isn't very useful yet – you need something that compares the old and
new versions of the contents somehow. Furthermore, constantly loading the contents of a
page exerts unnecessary strain on the hosting provider. We want our application to be as
@@ -79,7 +79,7 @@ So, modify the code as follows::
headers: dict[str, Any] = (
{"if-modified-since": last_modified} if last_modified else {}
)
- async with http.get("http://imgur.com", headers=headers) as resp:
+ async with http.get("https://imgur.com", headers=headers) as resp:
logger.debug("Response status: %d", resp.status)
if resp.status == 200:
last_modified = resp.headers["date"]
@@ -116,7 +116,7 @@ to the logger::
headers: dict[str, Any] = (
{"if-modified-since": last_modified} if last_modified else {}
)
- async with http.get("http://imgur.com", headers=headers) as resp:
+ async with http.get("https://imgur.com", headers=headers) as resp:
logger.debug("Response status: %d", resp.status)
if resp.status == 200:
last_modified = resp.headers["date"]
@@ -178,7 +178,7 @@ And to make the the results look nicer in an email message, you can switch to us
headers: dict[str, Any] = (
{"if-modified-since": last_modified} if last_modified else {}
)
- async with http.get("http://imgur.com", headers=headers) as resp:
+ async with http.get("https://imgur.com", headers=headers) as resp:
logger.debug("Response status: %d", resp.status)
if resp.status == 200:
last_modified = resp.headers["date"]
@@ -307,7 +307,7 @@ Now that you've moved the change detection code to its own module,
class ApplicationComponent(CLIApplicationComponent):
async def start(self) -> None:
- self.add_component("detector", ChangeDetectorComponent, url="http://imgur.com")
+ self.add_component("detector", ChangeDetectorComponent, url="https://imgur.com")
self.add_component(
"mailer", backend="smtp", host="your.smtp.server.here",
message_defaults={"sender": "your@email.here", "to": "your@email.here"})
@@ -362,7 +362,7 @@ following contents:
type: !!python/name:webnotifier.app.ApplicationComponent
components:
detector:
- url: http://imgur.com/
+ url: https://imgur.com/
delay: 15
mailer:
host: your.smtp.server.here
@@ -422,7 +422,7 @@ On Windows:
The ``if __name__ == '__main__':`` block is no longer needed since ``asphalt run``
is now used as the entry point for the application.
-.. _YAML: http://yaml.org/
+.. _YAML: https://yaml.org/
.. _properly packaged: https://packaging.python.org/
Conclusion
diff --git a/docs/userguide/architecture.rst b/docs/userguide/architecture.rst
index bae67ced..ade0d6fa 100644
--- a/docs/userguide/architecture.rst
+++ b/docs/userguide/architecture.rst
@@ -48,4 +48,4 @@ so the config file only needs to override settings where necessary.
The following chapters describe in detail how each of these building blocks work.
.. _Qt: https://www.qt.io/
-.. _YAML: http://yaml.org/
+.. _YAML: https://yaml.org/
diff --git a/docs/userguide/deployment.rst b/docs/userguide/deployment.rst
index 56021141..67275b29 100644
--- a/docs/userguide/deployment.rst
+++ b/docs/userguide/deployment.rst
@@ -10,7 +10,7 @@ deployments that all need their own custom configuration.
For this purpose, Asphalt provides a command line interface that will read a YAML_ formatted
configuration file and run the application it describes.
-.. _YAML: http://yaml.org/
+.. _YAML: https://yaml.org/
Running the Asphalt launcher
----------------------------
@@ -266,4 +266,4 @@ Add the following piece to your application's configuration:
backend_options:
use_uvloop: true
-.. _uvloop: http://magic.io/blog/uvloop-make-python-networking-great-again/
+.. _uvloop: https://magic.io/blog/uvloop-make-python-networking-great-again/
diff --git a/docs/userguide/testing.rst b/docs/userguide/testing.rst
index 152bd3d1..cea15282 100644
--- a/docs/userguide/testing.rst
+++ b/docs/userguide/testing.rst
@@ -66,7 +66,7 @@ To run the test suite, make sure you're in the project directory and then do:
For more elaborate examples, please see the test suites of various
`Asphalt subprojects`_.
-.. _pytest: http://pytest.org/
+.. _pytest: https://pytest.org/
.. _AnyIO's pytest plugin: https://anyio.readthedocs.io/en/stable/testing.html
.. _capsys: https://docs.pytest.org/en/stable/how-to/capture-stdout-stderr.html\
#accessing-captured-output-from-a-test-function
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst
index ce9400a9..3d5bdfd8 100644
--- a/docs/versionhistory.rst
+++ b/docs/versionhistory.rst
@@ -1,7 +1,7 @@
Version history
===============
-This library adheres to `Semantic Versioning 2.0 `_.
+This library adheres to `Semantic Versioning 2.0 `_.
**UNRELEASED**
diff --git a/examples/tutorial2/config.yaml b/examples/tutorial2/config.yaml
index a4590eb8..9767e33a 100644
--- a/examples/tutorial2/config.yaml
+++ b/examples/tutorial2/config.yaml
@@ -5,7 +5,7 @@ services:
type: webnotifier.app:ApplicationComponent
components:
detector:
- url: http://imgur.com/
+ url: https://imgur.com/
delay: 15
mailer:
host: your.smtp.server.here