A module to provide Apache functions.
server_versionReturns the server version string.
server_builtReturns the server built date string.
requestReturns the current Apache::Request object.
unescape_url(str)Decodes a URL-encoded string.
A class to wrap request_rec data type.
Object
Enumerable
hostnameReturns the hostname, as set by full URI or Host:.
unparsed_uriReturns the uri without any parsing performed.
uriReturns the path portion of the URI.
filenameReturns the filename of the script.
path_infoReturns PATH_INFO.
request_timeReturns the time when the request started.
request_methodRturns "GET", "HEAD", "POST".
header_only?Returns true if HEAD request.
argsReturns QUERY_ARGS.
headers_inReturns the Apache::Table object for the request header.
read([len])
gets([rs])
readline([rs])
readlines([rs])
each([rs]) {|line|...}
each_line([rs]) {|line|...}
each_byte {|ch|...}
getc
readchar
ungetc(ch)
tell
seek(offset, [whence])
rewind
pos
pos= n
eof
eof?
binmodeReceive data from the client. These methos work like same methods in IO.
status_line= strSpecifies the status line.
status_lineReturns the specified status line.
headers_outReturns the Apache::Table object for the response header.
content_type= strSpecifies Content-Type of the response header.
content_typeReturns specified Content-Type.
content_encoding= strSpecifies Content-Encoding of the response header.
content_encodingReturns specified Content-Languages.
content_languages= strSpecifies Content-Languages of the response header.
content_languagesReturns specified Content-Languages.
send_http_headerSends the HTTP response header. If you call this method twice or much, only sends once.
write(str)
putc(ch)
print(arg...)
printf(fmt, arg...)
puts(arg...)
<< objSends data to the client. These methos work like same methods in IO.
replace(str)Replaces the output buffer with str.
cancelClears the output buffer.
escape_html(str)Escapes &"<>.
A class to wrap table data type.
Object
Enumerable
clearClears contents of the table.
self[name]
get(name)Returns the value of name.
self[name]= val
set(name, val)
setn(name, val)
merge(name, val)
mergen(name, val)
add(name, val)
addn(name, val)Sets the value of name.
unset(name)Unsets the value of name.
each {|key,val|...}
each_key {|key|...}
each_value {|val|...}Iterates over each elements.