mirror of
https://codeberg.org/vlw/labylib.git
synced 2025-09-13 17:43:41 +02:00
Update README.md
This commit is contained in:
parent
2be9c26252
commit
939a306c6f
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,9 @@
|
|||

|
||||
|
||||
### Cosmetics API for Labymod
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||

|
||||
|
@ -43,7 +46,7 @@ cape_vis.update("show")
|
|||
```
|
||||
|
||||
# Advanced Usage
|
||||
## Request headers, cookies and body
|
||||
### Request headers and cookies:
|
||||
Each class instance can be modified before `update()` is called to make changes to the request headers, cookies etc. You can even add additional encoded form data to the request body if necessary.
|
||||
|
||||
labylib uses [`Requests`](https://requests.readthedocs.io/en/master/) under the hood and request parameters like headers and cookies can be modified in accordance with `Request`'s conventions.
|
||||
|
@ -55,7 +58,7 @@ cape_vis.headers["foo"] = "bar"
|
|||
cape_vis.update("show")
|
||||
```
|
||||
|
||||
### To append form data to the request body of an instance:
|
||||
### Append form data to the request body of an instance:
|
||||
|
||||
**For `x-www-form-urlencoded` requests:** Append form data with the `addEncodedFormData(key,value)` method:
|
||||
```python3
|
||||
|
|
Loading…
Add table
Reference in a new issue