mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-30 14:30:27 +00:00
Rename MapContentType to ProgramContentType (#570)
This commit is contained in:
parent
d2cec808dc
commit
164e2ab27b
3 changed files with 13 additions and 13 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue