{"id":20743177,"url":"https://github.com/httprb/form_data","last_synced_at":"2025-09-08T05:33:15.662Z","repository":{"id":24608846,"uuid":"28017541","full_name":"httprb/form_data","owner":"httprb","description":"Utility-belt to build form data request bodies.","archived":false,"fork":false,"pushed_at":"2024-07-03T11:45:03.000Z","size":146,"stargazers_count":35,"open_issues_count":6,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-28T21:54:22.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/httprb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-15T02:47:07.000Z","updated_at":"2025-08-25T13:42:07.000Z","dependencies_parsed_at":"2024-11-06T19:36:36.157Z","dependency_job_id":"404737ca-1410-4c33-94ea-f9ae6b9a1f15","html_url":"https://github.com/httprb/form_data","commit_stats":{"total_commits":90,"total_committers":15,"mean_commits":6.0,"dds":0.5666666666666667,"last_synced_commit":"59ad8751f362e5399a1d4374c66f92f18668b853"},"previous_names":["httprb/form_data.rb"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/httprb/form_data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fform_data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fform_data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fform_data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fform_data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httprb","download_url":"https://codeload.github.com/httprb/form_data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprb%2Fform_data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273665993,"owners_count":25146277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T07:09:30.977Z","updated_at":"2025-09-08T05:33:15.609Z","avatar_url":"https://github.com/httprb.png","language":"Ruby","readme":"# HTTP::FormData\n\n[![Gem Version](https://badge.fury.io/rb/http-form_data.svg)](http://rubygems.org/gems/http-form_data)\n[![Build Status](https://github.com/httprb/form_data/workflows/CI/badge.svg)](https://github.com/httprb/form_data/actions?query=workflow%3ACI+branch%3Amaster)\n[![Code Climate](https://codeclimate.com/github/httprb/form_data.svg)](https://codeclimate.com/github/httprb/form_data)\n[![Coverage Status](https://coveralls.io/repos/github/httprb/form_data/badge.svg?branch=master)](https://coveralls.io/github/httprb/form_data?branch=master)\n\nUtility-belt to build form data request bodies.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'http-form_data'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install http-form_data\n\n\n## Usage\n\n``` ruby\nrequire \"http/form_data\"\n\nform = HTTP::FormData.create({\n  :username     =\u003e \"ixti\",\n  :avatar_file  =\u003e HTTP::FormData::File.new(\"/home/ixti/avatar.png\")\n})\n\n# Assuming socket is an open socket to some HTTP server\nsocket \u003c\u003c \"POST /some-url HTTP/1.1\\r\\n\"\nsocket \u003c\u003c \"Host: example.com\\r\\n\"\nsocket \u003c\u003c \"Content-Type: #{form.content_type}\\r\\n\"\nsocket \u003c\u003c \"Content-Length: #{form.content_length}\\r\\n\"\nsocket \u003c\u003c \"\\r\\n\"\nsocket \u003c\u003c form.to_s\n```\n\nIt's also possible to create a non-file part with Content-Type:\n\n``` ruby\nform = HTTP::FormData.create({\n  :username     =\u003e HTTP::FormData::Part.new('{\"a\": 1}', content_type: 'application/json'),\n  :avatar_file  =\u003e HTTP::FormData::File.new(\"/home/ixti/avatar.png\")\n})\n```\n\n## Supported Ruby Versions\n\nThis library aims to support and is [tested against][ci] the following Ruby\nversions:\n\n* Ruby 2.5\n* Ruby 2.6\n* Ruby 2.7\n* Ruby 3.0\n* Ruby 3.1\n* Ruby 3.2\n* Ruby 3.3\n* JRuby 9.2\n\nIf something doesn't work on one of these versions, it's a bug.\n\nThis library may inadvertently work (or seem to work) on other Ruby versions,\nhowever support will only be provided for the versions listed above.\n\nIf you would like this library to support another Ruby version or\nimplementation, you may volunteer to be a maintainer. Being a maintainer\nentails making sure all tests run and pass on that implementation. When\nsomething breaks on your implementation, you will be responsible for providing\npatches in a timely fashion. If critical issues for a particular implementation\nexist at the time of a major release, support for that Ruby version may be\ndropped.\n\n\n## Contributing\n\n1. Fork it ( https://github.com/httprb/form_data.rb/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n\n## Copyright\n\nCopyright (c) 2015-2021 Alexey V Zapparov.\nSee [LICENSE.txt][license] for further details.\n\n\n[ci]:       http://travis-ci.org/httprb/form_data.rb\n[license]:  https://github.com/httprb/form_data.rb/blob/master/LICENSE.txt\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttprb%2Fform_data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttprb%2Fform_data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttprb%2Fform_data/lists"}