The Network::HTTP API does not currently have a way of building multipart/form-data HTTP requests, for uploading files. However, Net::HTTP does have a set_form method for this. We should brainstorm a keyword argument for specifying multipart/form-data requests, their Content-Type, and encoding.
The
Network::HTTP
API does not currently have a way of buildingmultipart/form-data
HTTP requests, for uploading files. However,Net::HTTP
does have a set_form method for this. We should brainstorm a keyword argument for specifyingmultipart/form-data
requests, theirContent-Type
, and encoding.