Last active
December 14, 2015 03:59
-
-
Save fbettag/5025072 to your computer and use it in GitHub Desktop.
Liftweb and Netty4 teaser ;)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -v http://127.0.0.1:8080/someresources/123 | |
* About to connect() to 127.0.0.1 port 8080 (#0) | |
* Trying 127.0.0.1... | |
* connected | |
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) | |
> GET /someresources/123 HTTP/1.1 | |
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 | |
> Host: 127.0.0.1:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< Expires: Sun, 24 Feb 2013 19:09:40 GMT | |
< Content-Length: 16 | |
< Cache-Control: no-cache, private, no-store | |
< Content-Type: application/json; charset=utf-8 | |
< Pragma: no-cache | |
< Date: Sun, 24 Feb 2013 19:09:40 GMT | |
< X-Lift-Version: 2.5-SNAPSHOT | |
< | |
{ | |
"id":"123" | |
* Connection #0 to host 127.0.0.1 left intact | |
}* Closing connection #0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fbettag@w00tw00t .oO(~/scala-projects/lift-netty-support) $ ./sbt ~run | |
[info] Loading global plugins from /Users/fbettag/.sbt/plugins | |
[info] Loading project definition from /Users/fbettag/scala-projects/lift-netty-support/project | |
[info] Set current project to netty (in build file:/Users/fbettag/scala-projects/lift-netty-support/) | |
[info] Compiling 1 Scala source to /Users/fbettag/scala-projects/lift-netty-support/target/scala-2.10/classes... | |
[info] Running net.liftweb.netty.LiftNettyServer | |
20:09:33.811 [run-main] DEBUG i.n.u.internal.InternalLoggerFactory - Using SLF4J as the default logging framework | |
20:09:34.393 [nioEventLoopGroup-1-2] DEBUG io.netty.channel.nio.SelectorUtil - Using select timeout of 500 | |
20:09:34.393 [nioEventLoopGroup-1-2] DEBUG io.netty.channel.nio.SelectorUtil - Epoll-bug workaround enabled = true | |
Listening on 0.0.0.0:8080 | |
Ready | |
**** Dude... I'm in Boot!! | |
20:09:39.619 [nioEventLoopGroup-2-2] ERROR net.liftweb.util.Props - Failed to find a properties file (but properties were accessed). Searched: /default.props | |
DefaultFullHttpRequest, decodeResult: success) | |
GET /someresources/123 HTTP/1.1 | |
User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 | |
Host: 127.0.0.1:8080 | |
Accept: */* | |
Content-Length: 0 | |
20:09:40.080 [pool-11-thread-1] INFO net.liftweb.util.TimeHelpers - Service request (GET) /someresources/123 returned 200, took 290 Milliseconds | |
client disconnected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment