{"id":13750708,"url":"https://github.com/gdwrd/mruby-smallhttp","last_synced_at":"2026-03-10T11:18:26.767Z","repository":{"id":101539803,"uuid":"87064961","full_name":"gdwrd/mruby-smallhttp","owner":"gdwrd","description":"mruby-smallhttp for mruby","archived":false,"fork":false,"pushed_at":"2018-03-25T09:44:29.000Z","size":16,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-24T03:01:34.329Z","etag":null,"topics":["http","http-client","mruby","mruby-gem","smallhtttp"],"latest_commit_sha":null,"homepage":"https://nsheremet.pw/mruby-smallhttp","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/gdwrd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-04-03T11:03:42.000Z","updated_at":"2024-08-24T03:01:34.330Z","dependencies_parsed_at":null,"dependency_job_id":"0e0f1214-ee77-4768-a2b6-9d0726c4b3df","html_url":"https://github.com/gdwrd/mruby-smallhttp","commit_stats":null,"previous_names":["nsheremet/mruby-smallhttp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdwrd%2Fmruby-smallhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdwrd%2Fmruby-smallhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdwrd%2Fmruby-smallhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdwrd%2Fmruby-smallhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gdwrd","download_url":"https://codeload.github.com/gdwrd/mruby-smallhttp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224869041,"owners_count":17383307,"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","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":["http","http-client","mruby","mruby-gem","smallhtttp"],"created_at":"2024-08-03T08:00:44.707Z","updated_at":"2026-03-10T11:18:26.734Z","avatar_url":"https://github.com/gdwrd.png","language":"Ruby","readme":"# mruby-smallhttp   \n[![Build Status](https://travis-ci.org/nsheremet/mruby-smallhttp.svg?branch=master)](https://travis-ci.org/nsheremet/mruby-smallhttp)\n\nmruby-smallhttp for mruby\n## install by mrbgems\n\n`mruby-smallhttp` it's small http lib for MRuby\n## Install by mrbgems\n- add conf.gem line to `build_config.rb`\n\n```ruby\nMRuby::Build.new do |conf|\n  conf.gem :mgem =\u003e 'mruby-smallhttp'\nend\n```\n\n## Example\n\n### Requests\n```ruby\n# GET Request\nHTTP.new(\"https://example.com/api/v1/users\").get\n#=\u003e response\n\n# POST Request\ndata = { name: 'value' }\nheaders = {'Content-Type' =\u003e 'application/json'}\n\nHTTP.new(\"https://example.com/api/v1/users\").post(data, headers)\n#=\u003e response\n\n# PUT Request\nhttp = HTTP.new(\"https://example.com/api/v1/users/1\")\nhttp.put(data, headers)\n\n# DELETE Request\nhttp = HTTP.new(\"https://example.com/api/v1/users/1\")\nhttp.delete(data, headers)\n#=\u003e response\n\n# HEAD \u0026 OPTIONS Request\nhttp = HTTP.new(\"https://example.com/api/v1/users/1\")\nhttp.request(\"HEAD\", body, header)\n#=\u003e response\n```\n\n### How to send file\n```ruby\n# How to send file in post request\nbody = { name: 'value', file: File.read('filename') }\nheader = { 'Content-Type' =\u003e 'multipart/form-data' }\nhttp = HTTP.new(\"https://example.com/api/v1/users/1\")\nhttp.post(body, header)\n#=\u003e response\n```\n`Content-Type` supported: `application/json`, `application/x-www-form-urlencoded`, `multipart/form-data` and `text/plain`\n\n## License\nunder the MIT License:\n- see LICENSE file\n","funding_links":[],"categories":["Web Frameworks","Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdwrd%2Fmruby-smallhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgdwrd%2Fmruby-smallhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdwrd%2Fmruby-smallhttp/lists"}