mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-30 06:34:34 +02:00
Update packageHttp.md
This commit is contained in:
parent
bc550ae8f5
commit
35d8610c00
@ -2,12 +2,12 @@
|
|||||||
Package http is the main way for a plugin to make web requests, and is likely a package you will always need.
|
Package http is the main way for a plugin to make web requests, and is likely a package you will always need.
|
||||||
It offers several ways to make web requests as well as websocket connections.
|
It offers several ways to make web requests as well as websocket connections.
|
||||||
|
|
||||||
Before you can use http you need to register it in your plugin config. See [Packages](_blank).
|
Before you can use http you need to register it in your plugin config. See [Packages](/app/src/main/java/com/futo/platformplayer/engine/packages).
|
||||||
|
|
||||||
## Basic Info
|
## Basic Info
|
||||||
Underneath the http package by default exist two web clients. An authenticated client and a unauthenticated client.
|
Underneath the http package by default exist two web clients. An authenticated client and a unauthenticated client.
|
||||||
The authenticated client has will apply headers and cookies if the user is logged in with your plugin.
|
The authenticated client has will apply headers and cookies if the user is logged in with your plugin.
|
||||||
See [Plugin Authentication](_blank).
|
See [Plugin Authentication](/docs/Authentication.md).
|
||||||
These two clients are always available even when the user is not logged in, meaning it behaves similar to the unauthenticated client and can safely use it either way.
|
These two clients are always available even when the user is not logged in, meaning it behaves similar to the unauthenticated client and can safely use it either way.
|
||||||
|
|
||||||
>:warning: **Requests are synchronous**
|
>:warning: **Requests are synchronous**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user