www/ruby-faraday-multipart 1.2.0 NetBSD
Perform multipart-post requests using Faraday
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- www, ruby
- Package size
- 20.3 KiB, 46.9 KiB installed
Description
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.
Install
Binary package:
pkgin install ruby33-faraday-multipart
From pkgsrc:
cd /usr/pkgsrc/www/ruby-faraday-multipart && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.2.0 |
| NetBSD 10.1 aarch64 | 1.2.0 |
| SmartOS / illumos x86_64 | 1.2.0 |
| macOS 15 arm64 | 1.2.0 |
Dependencies
Run dependencies 2
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
ruby34-faraday-multipart-1.2.0,ruby40-faraday-multipart-1.2.0