FormPart
is a single part decoded from a multipart/form-data body: the
field name, an optional filename (present for file uploads), an optional
content-type, and the raw body.
content-type
(Fn [(Ref FormPart a)] (Ref (Maybe String) a))
gets the content-type property of a FormPart.
filename
(Fn [(Ref FormPart a)] (Ref (Maybe String) a))
gets the filename property of a FormPart.
set-body!
(Fn [(Ref FormPart a), String] ())
sets the body property of a FormPart in place.
set-content-type
(Fn [FormPart, (Maybe String)] FormPart)
sets the content-type property of a FormPart.
set-content-type!
(Fn [(Ref FormPart a), (Maybe String)] ())
sets the content-type property of a FormPart in place.
set-filename
(Fn [FormPart, (Maybe String)] FormPart)
sets the filename property of a FormPart.
set-filename!
(Fn [(Ref FormPart a), (Maybe String)] ())
sets the filename property of a FormPart in place.
set-name!
(Fn [(Ref FormPart a), String] ())
sets the name property of a FormPart in place.
update-body
(Fn [FormPart, (Ref (Fn [String] String a) b)] FormPart)
updates the body property of a FormPart using a function f.
update-content-type
(Fn [FormPart, (Ref (Fn [(Maybe String)] (Maybe String) a) b)] FormPart)
updates the content-type property of a FormPart using a function f.
update-filename
(Fn [FormPart, (Ref (Fn [(Maybe String)] (Maybe String) a) b)] FormPart)
updates the filename property of a FormPart using a function f.
update-name
(Fn [FormPart, (Ref (Fn [String] String a) b)] FormPart)
updates the name property of a FormPart using a function f.