awesomewm.d.tl/types/mime.d.tl

43 lines
924 B
Plaintext
Raw Permalink Normal View History

2022-09-29 19:33:23 +02:00
local ltn12 = require("ltn12")
local type Filter = ltn12.Filter
local record mime
normalize: function(): Filter
normalize: function(string): Filter
enum Encoding
"base64"
"quoted-printable"
end
enum Mode
"text"
"binary"
end
decode: function(Encoding): Filter
encode: function(Encoding, Mode): Filter
stuff: function(): Filter
wrap: function(string, integer): Filter
wrap: function(Encoding): Filter
b64: function(string, string): string, string
dot: function(integer, string): string, integer
eol: function(integer, string, string): string, integer
qp: function(string, string, string): string, string
qpwrp: function(integer, string, integer): string, integer
unb64: function(string, string): string, string
unqp: function(string, string): string, string
wrp: function(integer, string, integer): string, integer
end
return mime