seed r97 - trunk/examples
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r97 - trunk/examples
- Date: Tue, 4 Nov 2008 03:05:15 +0000 (UTC)
Author: racarr
Date: Tue Nov 4 03:05:15 2008
New Revision: 97
URL: http://svn.gnome.org/viewvc/seed?rev=97&view=rev
Log:
Add simple soup example. Not very useful as soup isn't very bindable
right now.
Added:
trunk/examples/soup.js (contents, props changed)
Modified:
trunk/examples/Makefile.am
Modified: trunk/examples/Makefile.am
==============================================================================
--- trunk/examples/Makefile.am (original)
+++ trunk/examples/Makefile.am Tue Nov 4 03:05:15 2008
@@ -15,6 +15,7 @@
pango.js \
quine.js \
repl.js \
+ soup.js \
vte-test.js
## File created by the gnome-build tools
Added: trunk/examples/soup.js
==============================================================================
--- (empty file)
+++ trunk/examples/soup.js Tue Nov 4 03:05:15 2008
@@ -0,0 +1,11 @@
+#!/usr/local/bin/seed
+Seed.import_namespace("Soup");
+
+session = new Soup.SessionSync();
+uri = Soup.URI._new("http://www.google.com");
+request = new Soup.Message({method:"GET",
+ uri:uri});
+status = session.send_message(request);
+Seed.print(status);
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]