http_header

http_header(content_type_string="text/html")http_header(headers_hash) Instance Public methods Create an HTTP header block as a string. Includes the empty line that ends the header block. content_type_string If this form is used, this string is the Content-Type headers_hash A Hash of header values. The following header keys are recognized: type The Content-Type header. Defaults to âtext/htmlâ charset The charset of the body, appended to the Content-Type header. nph A

out

cgi.out(content_type_string='text/html')cgi.out(headers_hash) Instance Public methods Print an HTTP header and body to $DEFAULT_OUTPUT ($>) content_type_string If a string is passed, it is assumed to be the content type. headers_hash This is a Hash of headers, similar to that used by http_header. block A block is required and should evaluate to the body of the response. Content-Length is automatically calculated from the size of the String returned by the content b

print

print(*options) Instance Public methods Print an argument or list of arguments to the default output stream cgi = CGI.new cgi.print # default: cgi.print == $DEFAULT_OUTPUT.print

new

new(dirpath) Class Public methods

add_crl

add_crl(crl) Instance Public methods

delete_crl

delete_crl(crl) Instance Public methods

get_certs

get_certs(name = nil) Instance Public methods

get_crls

get_crls(name = nil) Instance Public methods

hash_dir

hash_dir(silent = false) Instance Public methods

load_pem_file

load_pem_file(filepath) Instance Public methods