mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 04:20:30 +00:00
Add MapContentType to redbean (#566)
This commit is contained in:
parent
8cab92a069
commit
91a3252434
3 changed files with 66 additions and 4 deletions
|
@ -1271,6 +1271,9 @@ FUNCTIONS
|
|||
flag was used. If slurping large file into memory is a concern,
|
||||
then consider using ServeAsset which can serve directly off disk.
|
||||
|
||||
MapContentType(ext:str[, contenttype:str]) → str
|
||||
Sets or returns content type associated with a file extension.
|
||||
|
||||
StoreAsset(path:str, data:str[, mode:int])
|
||||
Stores asset to executable's ZIP central directory. This
|
||||
currently happens in an append-only fashion and is still
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue