From 961ead5aa0698d177a2ea3e5107c6cce5d57a14d Mon Sep 17 00:00:00 2001 From: FoxRefire <155989196+FoxRefire@users.noreply.github.com> Date: Tue, 11 Jun 2024 19:54:52 +0900 Subject: [PATCH] Updated How to add custom license scheme yourself (markdown) --- How-to-add-custom-license-scheme-yourself.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/How-to-add-custom-license-scheme-yourself.md b/How-to-add-custom-license-scheme-yourself.md index d632ea5..af882dc 100644 --- a/How-to-add-custom-license-scheme-yourself.md +++ b/How-to-add-custom-license-scheme-yourself.md @@ -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. -[*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:** * **url:** Specifies URL to request in string. * **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. * **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"`. - * **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