Rename MapContentType to ProgramContentType (#570)

This commit is contained in:
Paul Kulchenko 2022-08-24 09:35:17 -07:00 committed by GitHub
parent d2cec808dc
commit 164e2ab27b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

View file

@ -1271,9 +1271,6 @@ 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
@ -1375,6 +1372,9 @@ FUNCTIONS
ProgramCertificate(Slurp("/etc/letsencrypt.lol/fullchain.pem")) for
local file system only.
ProgramContentType(ext:str[, contenttype:str]) → str
Sets or returns content type associated with a file extension.
ProgramHeader(name:str,value:str)
Appends HTTP header to the header buffer for all responses (whereas
SetHeader only appends a header to the current response buffer).