Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matsumotory/mruby-simplehttp
SimpleHttp of iij/mruby support mruby/mruby using mruby-uv and mruby-http
https://github.com/matsumotory/mruby-simplehttp
Last synced: about 2 months ago
JSON representation
SimpleHttp of iij/mruby support mruby/mruby using mruby-uv and mruby-http
- Host: GitHub
- URL: https://github.com/matsumotory/mruby-simplehttp
- Owner: matsumotory
- Created: 2012-12-18T11:15:48.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2021-03-13T13:16:10.000Z (almost 4 years ago)
- Last Synced: 2024-10-18T18:22:51.368Z (3 months ago)
- Language: Ruby
- Size: 52.7 KB
- Stars: 17
- Watchers: 7
- Forks: 28
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleHttp Class for mruby
Simple http or https connection class for mruby.refactored SimpleHttp using mruby-polarssl and mruby-socket or mruby-uv
original code is iij/mruby
## install by mrbgems
- add conf.gem line to `build_config.rb`
```ruby
MRuby::Build.new do |conf|# ... (snip) ...
conf.gem :git => 'https://github.com/matsumoto-r/mruby-simplehttp.git'
end
```## example
```ruby
p SimpleHttp.new("http", "127.0.0.1", 80).request("GET", "/index.html", {'User-Agent' => "test-agent"})
```# License
under the MIT License:* http://www.opensource.org/licenses/mit-license.php