Project

soup-ruby

0.0
No commit activity in last 3 years
No release in over 3 years
Libsoup bindings for ruby. Partial coverage sufficient to allow HTTP requests to be handled without blocking the mainloop. e.g require 'gtk2' require 'soup' message = Soup::Message.new("GET", "http://www.example.com/") Soup::SessionAsync.new.queue(message) do |_sess,_mess| puts "Got response" Gtk.main_quit end Gtk.main
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.0.0
 Project Readme

LibSoup bindings

Requires

  • rubber-generate >= 0.0.15
  • ruby-gnome2 (including development files)
  • libsoup-2.4 (including development files)

Description

Basic bindings for using the libsoup library from Ruby.

e.g

require 'gtk2'
require 'soup'
require 'digest/md5'

session = Soup::SessionAsync.new

message = Soup::Message.new("GET", "http://www.google.com/")

session.queue(message) do |*args|
	puts message.response_body

	Gtk.main_quit

	false
end

Gtk.main