repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git]
/
sample
/
webrick
/
hello.cgi
blob
35d2240df0f36d3a6f3efd4e1158c4283bb28944
1
#!/usr/bin/env ruby
2
require
"webrick/cgi"
3
4
class
HelloCGI
<
WEBrick
::CGI
5
def
do_GET
(
req
,
res
)
6
res
[
"content-type"
] =
"text/plain"
7
res
.
body
=
"Hello, world.
\n
"
8
end
9
end
10
11
HelloCGI
.
new
.
start