hunt-http ~master (2022-03-03T02:59:30Z)
Home
Dub
Repo
HttpBody.createFromFile
hunt
http
HttpBody
HttpBody
Returns a new request body that transmits the content of {@code file}.
class
HttpBody
static
HttpBody
createFromFile
(
string
type
,
string
fileName
)
Meta
Source
See Implementation
hunt
http
HttpBody
HttpBody
functions
append
asString
contentLength
contentType
getRaw
toString
writeTo
static functions
create
createFromFile
Returns a new request body that transmits the content of {@code file}.