mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
supports user defined extra http request headers
This commit is contained in:
parent
b0147c8c85
commit
0d9d30d783
15 changed files with 62 additions and 35 deletions
|
@ -136,11 +136,12 @@ Ex. ":p x" or ":px" for screen width and infinite height (as
|
|||
Extract remote content (tar/tgz/zip) under the folder [path]. If [path] ends with "/", then put unzipped file under the folder "[path]/[file name stem]" (for zipped files only, not for tar/tgz).</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:0m[bookmarklet index|prefix|?postfix|/.../localfile|c[cssFlag]]:[url]<br>
|
||||
<p>i:0m[bookmarklet index|prefix|?postfix|/.../localfile|H[headers]|c[cssFlag]]:[url]<br>
|
||||
Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].</p>
|
||||
<ul>
|
||||
<li>[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, "00" as the first local bookmarklet; "01" as the first remote script; then "02" as the second local bookmarklet, ... The third digit is uplevel, 1 to make bookmarklet valid for parent path of [url].</li>
|
||||
<li>c[cssFlag]: For example, "c12" will apply the third and fourth global CSS (12=2^2+2^3).</li>
|
||||
<li>H[headers]: Ex. "HX-Forwarded-For;8.8.8.8" adds extra http request header "X-Forwarded-For:8.8.8.8".</li>
|
||||
<li>[?postfix]: the real visited url is "[url]+[?postfix]".</li>
|
||||
<li>[/.../localfile]: load the local html/js file that processes [url]. The first character of the local html file must be "<".</li>
|
||||
<li>All other cases will be treated as [prefix], the real visited url is "[prefix]+[url]".</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue