Add GetHostOs to redbean (#228)

This commit is contained in:
Paul Kulchenko 2021-08-07 14:25:55 -07:00 committed by GitHub
parent 0cdba6878b
commit 6bbb44c165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View file

@ -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