Updated How to add custom license scheme yourself (markdown)
parent
d2a621543f
commit
961ead5aa0
@ -42,14 +42,14 @@ See [Contribution](https://github.com/FoxRefire/wvg/wiki/Contribution) for more
|
|||||||
|
|
||||||
[*licBody*](https://github.com/FoxRefire/wvg/blob/next/popup.js#L19): Request payloads of License server as Base64 String. Use `loadBody()` API to able to load it in scheme.
|
[*licBody*](https://github.com/FoxRefire/wvg/blob/next/popup.js#L19): Request payloads of License server as Base64 String. Use `loadBody()` API to able to load it in scheme.
|
||||||
|
|
||||||
[*corsFetch(url, method, headers, body, resType)*](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L47): Use this function for requesting to license server.
|
[*corsFetch(url, method, headers, body, resType)*](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L47): Use this function for requesting to license server. Alternatively, if the license server does not care about the Origin header, [pyfetch](https://pyodide.org/en/stable/usage/api/python-api/http.html#pyodide.http.pyfetch) can be used.
|
||||||
* **PARAMS:**
|
* **PARAMS:**
|
||||||
* **url:** Specifies URL to request in string.
|
* **url:** Specifies URL to request in string.
|
||||||
* **method:** Specifies request method in string, `"POST"` is used in most cases.
|
* **method:** Specifies request method in string, `"POST"` is used in most cases.
|
||||||
* **headers:** Specifies headers of request in `dict` or `str`, in most cases, specifying `licHeaders` as is.
|
* **headers:** Specifies headers of request in `dict` or `str`, in most cases, specifying `licHeaders` as is.
|
||||||
* **body:** Specifies requestBody of request in `bytes`, `str`, or `dict`, in most cases, either a `licBody` with a modified payload or a `challenge` is specified as is.
|
* **body:** Specifies requestBody of request in `bytes`, `str`, or `dict`, in most cases, either a `licBody` with a modified payload or a `challenge` is specified as is.
|
||||||
* **resType:** Specifies the return type in string, accepts `"blob"`, `"str"` or `"json"`.
|
* **resType:** Specifies the return type in string, accepts `"blob"`, `"str"` or `"json"`.
|
||||||
* **RESPONSE:** Returns fetch response as `bytes`, `str` or `dict` depending on the argument
|
* **RESPONSE:** Returns fetch response as `bytes`, `str` or `dict` depending on the argument (Asynchronous)
|
||||||
|
|
||||||
|
|
||||||
[*loadBody(loadAs)*](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L67): Loads Base64 encoded requestBody into scheme
|
[*loadBody(loadAs)*](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L67): Loads Base64 encoded requestBody into scheme
|
||||||
|
Loading…
Reference in New Issue
Block a user