Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feature: mime_type expression function
Adds a mime_type( bytes ) expression function Funded by: Today I didn't go skiing.
- Loading branch information
1 parent
7f0a9a9
commit 9489afe
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "mime_type", | ||
"type": "function", | ||
"groups": ["General"], | ||
"description": "Returns the mime type of the binary data.", | ||
"arguments": [ {"arg":"bytes","description":"the binary data"}], | ||
"examples": [ { "expression":"mime_type('<html><body></body></html>')", "returns":"text/html"}, | ||
{ "expression":"mime_type(from_base64('R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAIAOw=='))", "returns":"image/gif"} ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters