Skip to content

Commit ff9572b

Browse files
committed
Fix HTTP request example and small mistakes in docs. Release 2.1.1
1 parent f07a59c commit ff9572b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/quickstart.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ HTTP Requests
1616
^^^^^^^^^^^^^
1717
To easily make requests each connection provides a method wrapper around `aiohttp.Request <https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.request>`_ that allow us to make request without dealing with authentication or the port where it is running.
1818

19-
You can find more about the method `here <http://localhost:63342/lcu-driver/docs/_build/html/api/connection.html#lcu_driver.connection.Connection.request>`_.
2019

2120
If you don't know where to find the Client APIs documentation checkout out `Rift Explorer <https://github.com/Pupix/rift-explorer>`_.
2221

2322
.. literalinclude:: ../examples/tutorial/http_request.py
2423
:language: python
2524

26-
You can find more about the method here.
25+
You can find more about the method :meth:`here <lcu_driver.connection.Connection.request>`.
2726

2827
Websocket
2928
^^^^^^^^^
@@ -49,7 +48,7 @@ URL Patterns
4948
What if you wanted to subscribe to all summoner events? You can simple register `/lol-summoner/` and since it ends with a trailing slash it will match every event url starting with it.
5049

5150
Examples
52-
-------
51+
--------
5352

5453
**Not ending with trailing slash**
5554
...................................

examples/tutorial/http_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
@connector.ready
77
async def connect(connection):
88
summoner = await connection.request('get', '/lol-summoner/v1/current-summoner')
9-
print(summoner)
9+
print(await summoner.json())
1010

1111
connector.start()

0 commit comments

Comments
 (0)