Add MapContentType to redbean (#566)

This commit is contained in:
Paul Kulchenko 2022-08-22 22:02:58 -07:00 committed by GitHub
parent 8cab92a069
commit 91a3252434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 4 deletions

View file

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