mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-04 00:40:27 +00:00
Add GetHostOs to redbean (#228)
This commit is contained in:
parent
0cdba6878b
commit
6bbb44c165
2 changed files with 31 additions and 0 deletions
|
@ -639,6 +639,9 @@ FUNCTIONS
|
|||
Returns host associated with request. This will be the Host
|
||||
header, if it's supplied. Otherwise it's the bind address.
|
||||
|
||||
GetHostOs() → str
|
||||
Returns string that describes the host OS.
|
||||
|
||||
GetMonospaceWidth(str|char) → int
|
||||
Returns monospace display width of string. This is useful for
|
||||
fixed-width formatting. For example, CJK characters typically take
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue