https://github.com/httprb/form_data
Utility-belt to build form data request bodies.
https://github.com/httprb/form_data
Keywords from Contributors
rubygems mvc activerecord activejob http-client crash-reporting rack rspec marshalling static-code-analysis
Last synced: about 3 hours ago
JSON representation
Repository metadata
Utility-belt to build form data request bodies.
- Host: GitHub
- URL: https://github.com/httprb/form_data
- Owner: httprb
- License: mit
- Created: 2014-12-15T02:47:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2026-03-20T16:00:59.000Z (about 1 month ago)
- Last Synced: 2026-03-24T18:08:55.531Z (about 1 month ago)
- Language: Ruby
- Size: 266 KB
- Stars: 35
- Watchers: 2
- Forks: 19
- Open Issues: 0
- Releases: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
README.md
HTTP::FormData
Utility-belt to build form data request bodies.
Installation
Add this line to your application's Gemfile:
gem 'http-form_data'
And then execute:
$ bundle
Or install it yourself as:
$ gem install http-form_data
Usage
require "http/form_data"
form = HTTP::FormData.create({
:username => "ixti",
:avatar_file => HTTP::FormData::File.new("/home/ixti/avatar.png")
})
# Assuming socket is an open socket to some HTTP server
socket << "POST /some-url HTTP/1.1\r\n"
socket << "Host: example.com\r\n"
socket << "Content-Type: #{form.content_type}\r\n"
socket << "Content-Length: #{form.content_length}\r\n"
socket << "\r\n"
socket << form.to_s
It's also possible to create a non-file part with Content-Type:
form = HTTP::FormData.create({
:username => HTTP::FormData::Part.new('{"a": 1}', content_type: 'application/json'),
:avatar_file => HTTP::FormData::File.new("/home/ixti/avatar.png")
})
Supported Ruby Versions
This library aims to support and is tested against the following Ruby
versions:
- Ruby 3.2
- Ruby 3.3
- Ruby 3.4
- Ruby 4.0
If something doesn't work on one of these versions, it's a bug.
This library may inadvertently work (or seem to work) on other Ruby versions,
however support will only be provided for the versions listed above.
If you would like this library to support another Ruby version or
implementation, you may volunteer to be a maintainer. Being a maintainer
entails making sure all tests run and pass on that implementation. When
something breaks on your implementation, you will be responsible for providing
patches in a timely fashion. If critical issues for a particular implementation
exist at the time of a major release, support for that Ruby version may be
dropped.
Contributing
- Fork it ( https://github.com/httprb/form_data.rb/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Copyright
Copyright (c) 2015-2026 Alexey V Zapparov.
See LICENSE.txt for further details.
Owner metadata
- Name: http.rb
- Login: httprb
- Email:
- Kind: organization
- Description: Projects implementing HTTP in pure Ruby
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/10374575?v=4
- Repositories: 5
- Last ynced at: 2024-03-25T20:35:05.614Z
- Profile URL: https://github.com/httprb
GitHub Events
Total
- Push event: 11
- Commit comment event: 2
Last Year
- Push event: 11
- Commit comment event: 2
Committers metadata
Last synced: 2 days ago
Total Commits: 137
Total Committers: 16
Avg Commits per committer: 8.563
Development Distribution Score (DDS): 0.664
Commits in past year: 47
Committers in past year: 5
Avg Commits per committer in past year: 9.4
Development Distribution Score (DDS) in past year: 0.298
| Name | Commits | |
|---|---|---|
| Alexey Zapparov | i****i@m****g | 46 |
| Erik Berlin | s****k@g****m | 33 |
| Janko Marohnić | j****c@g****m | 15 |
| Matt Kelly | m****y@w****m | 9 |
| HoneyryderChuck | c****o@h****m | 7 |
| Andrei Botalov | a****v@e****m | 7 |
| Andrei Botalov | b****y@g****m | 6 |
| YOSHIKI | y****g@g****m | 3 |
| Alexander Popov | a****r@g****m | 3 |
| Matt Kelly | m****y@g****m | 2 |
| Tony Arcieri | b****e@g****m | 1 |
| Rafael Masson | r****n@g****m | 1 |
| Olle Jonsson | o****n@g****m | 1 |
| Matt Hickman | m****n@s****m | 1 |
| Fabien Chaynes | f****s@d****m | 1 |
| Ari Summer | a****r@g****m | 1 |
Committer domains:
- dimelo.com: 1
- squareup.com: 1
- epam.com: 1
- weedmaps.com: 1
- member.fsf.org: 1
Issue and Pull Request metadata
Last synced: about 1 month ago
Total issues: 10
Total pull requests: 28
Average time to close issues: about 4 years
Average time to close pull requests: 6 months
Total issue authors: 9
Total pull request authors: 12
Average comments per issue: 3.4
Average comments per pull request: 5.93
Merged pull request: 24
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- abotalov (2)
- olleolleolle (1)
- ixti (1)
- FabienChaynes (1)
- digitalextremist (1)
- HoneyryderChuck (1)
- sferik (1)
- paradox460 (1)
- Eric-Guo (1)
Top Pull Request Authors
- janko (6)
- ixti (5)
- ytkg (5)
- AlexWayfer (3)
- abotalov (2)
- olleolleolle (1)
- rafbm (1)
- summera (1)
- mathisto (1)
- FabienChaynes (1)
- mhickman (1)
- HoneyryderChuck (1)
Top Issue Labels
- bug (3)
- enhancement (2)
- help wanted (1)
Top Pull Request Labels
Package metadata
- Total packages: 2
-
Total downloads:
- rubygems: 386,358,988 total
- Total docker downloads: 3,640,834,548
- Total dependent packages: 17 (may contain duplicates)
- Total dependent repositories: 11,870 (may contain duplicates)
- Total versions: 26
- Total maintainers: 2
gem.coop: http-form_data
Utility-belt to build form data request bodies. Provides support for `application/x-www-form-urlencoded` and `multipart/form-data` types.
- Homepage: https://github.com/httprb/form_data
- Documentation: http://www.rubydoc.info/gems/http-form_data/
- Licenses: MIT
- Latest release: 3.0.1 (published about 1 month ago)
- Last Synced: 2026-04-28T16:02:28.037Z (2 days ago)
- Versions: 13
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 193,237,940 Total
- Docker Downloads: 1,820,417,274
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.049%
- Docker downloads count: 0.059%
- Downloads: 0.136%
- Maintainers (2)
rubygems.org: http-form_data
Utility-belt to build form data request bodies. Provides support for `application/x-www-form-urlencoded` and `multipart/form-data` types.
- Homepage: https://github.com/httprb/form_data
- Documentation: http://www.rubydoc.info/gems/http-form_data/
- Licenses: MIT
- Latest release: 3.0.1 (published about 1 month ago)
- Last Synced: 2026-04-27T15:02:11.653Z (3 days ago)
- Versions: 13
- Dependent Packages: 17
- Dependent Repositories: 11,870
- Downloads: 193,121,048 Total
- Docker Downloads: 1,820,417,274
-
Rankings:
- Docker downloads count: 0.071%
- Downloads: 0.142%
- Dependent repos count: 0.314%
- Dependent packages count: 1.182%
- Average: 2.886%
- Forks count: 6.595%
- Stargazers count: 9.011%
- Maintainers (2)
Dependencies
- fuubar >= 0 development
- guard >= 0 development
- guard-rspec >= 0 development
- pry >= 0 development
- pry-byebug >= 0 development
- redcarpet >= 0 development
- rspec ~> 3.10 development
- rubocop >= 0 development
- rubocop-performance >= 0 development
- rubocop-rake >= 0 development
- rubocop-rspec >= 0 development
- simplecov >= 0 development
- simplecov-lcov >= 0 development
- yard >= 0 development
- rake >= 0
- actions/checkout v4 composite
- coverallsapp/github-action v2 composite
- ruby/setup-ruby v1 composite
Score: 28.44427569407263