Skip to content

Instantly share code, notes, and snippets.

@yinyunqiao
Created June 29, 2012 07:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yinyunqiao/3016424 to your computer and use it in GitHub Desktop.
Save yinyunqiao/3016424 to your computer and use it in GitHub Desktop.
http server in QML
import http 1.0
HttpServer {
id:server
port:8888
onRequest: { /*request, response*/
response.write('<h1>Hello QML!</h1>')
.end();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment