./www/ruby-faraday-multipart, Perform multipart-post requests using Faraday

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.0.4, Package name: ruby31-faraday-multipart-1.0.4, Maintainer: pkgsrc-users

Faraday Multipart

The Multipart middleware converts a Faraday::Request#body Hash of
key/value pairs into a multipart form request, but only under these
conditions:

* The request's Content-Type is "multipart/form-data"
* Content-Type is unspecified, AND one of the values in the Body responds to
#content_type.

Faraday contains a couple helper classes for multipart values:

* Faraday::Multipart::FilePart wraps binary file data with a Content-Type.
The file data can be specified with a String path to a local file, or an
IO object.

* Faraday::Multipart::ParamPart wraps a String value with a Content-Type,
and optionally a Content-ID.


Master sites:

Filesize: 10.5 KB

Version history: (Expand)


CVS history: (Expand)


   2023-01-07 16:20:12 by Takahiro Kambe | Files touched by this commit (4)
Log message:
www/ruby-faraday-multipart: add package version 1.0.4

Required by newer ruby-faraday package.

Faraday Multipart

The Multipart middleware converts a Faraday::Request#body Hash of
key/value pairs into a multipart form request, but only under these
conditions:

* The request's Content-Type is "multipart/form-data"
* Content-Type is unspecified, AND one of the values in the Body responds to
  #content_type.

Faraday contains a couple helper classes for multipart values:

* Faraday::Multipart::FilePart wraps binary file data with a Content-Type.
  The file data can be specified with a String path to a local file, or an
  IO object.

* Faraday::Multipart::ParamPart wraps a String value with a Content-Type,
  and optionally a Content-ID.