GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Dart Client Dart Client
Demis Bellot edited this page
This page has moved to docs.servicestack.net/dart-clientThe Dart project is an exciting new initiative from Google that helps you build and maintain large structured modern web apps. It comes with all batteries included, including a comprehensive library, rich Eclipse and JetBrains IDE's, built-in debugging in Dartium and Chrome (with source maps) and is being developed by many of the top talent behind Googles world-leading V8 JavaScript engine and the comprehensive GWT toolkit. As we expect Dart to prove to be a popular web platform target in future, we've jumped in early and have developed a flexible Dart JsonClient that allows you to effortlessly consume ServiceStack JSON services in idiomatic Dart. The client takes advantage of some of Dart's features like var client = new JsonClient("http://www.servicestack.net/Backbone.Todos"); client.todos() //GET /todos client.todos(1) //GET /todos/1 //POST /todos ... client.todos({'content':'Add a new TODO!', 'order':1}) //PUT /todos/1 ... client.put('todos/1', {"content":"Learn Dart","done":true}) //DELETE /todos/1 client.delete('todos/1') //GET /files/services/FilesService.cs.txt client.files("services/FilesService.cs.txt") .then( (fileInfo) => ... ) //Handling responses with Futures client.todos(1) .then( (todo) => ... ) The JavaScript idiom of using callbacks for handling async callbacks is still supported: client.todos(1, (todo) => ...) //Handling responses with callbacks But this is discouraged in Dart, whose async APIs all return Futures.
Clone this wiki locally |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |