nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples: annotate examples
[nit.git]
/
lib
/
nitcorn
/
examples
/
src
/
htcpcp_server.nit
diff --git
a/lib/nitcorn/examples/src/htcpcp_server.nit
b/lib/nitcorn/examples/src/htcpcp_server.nit
index
315d76f
..
d58dcca
100644
(file)
--- a/
lib/nitcorn/examples/src/htcpcp_server.nit
+++ b/
lib/nitcorn/examples/src/htcpcp_server.nit
@@
-17,7
+17,7
@@
# Hyper Text Coffee Pot Control Protocol
# A server that implements HTCPCP. At the moment there are no additions.
# Hyper Text Coffee Pot Control Protocol
# A server that implements HTCPCP. At the moment there are no additions.
-module htcpcp_server
+module htcpcp_server is example
import nitcorn
import nitcorn
@@
-36,7
+36,7
@@
class HTCPCPAction
var method = http_request.method
var response: HttpResponse
var method = http_request.method
var response: HttpResponse
- if is_teapot == true then
+ if is_teapot then
response = new HttpResponse(418)
response.body = "I'm a teapot!\n"
response.header["Content-Type"] = "text"
response = new HttpResponse(418)
response.body = "I'm a teapot!\n"
response.header["Content-Type"] = "text"