Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Apache2::RequestRec 2.0.3

    Download button

    No screenshots available
    Downloads: 416  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    mod_perl Team | More programs
    The Apache License 2.0 / FREE
    July 17th, 2007, 00:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Apache2::RequestRec description

    A Perl API for Apache request record accessors.

    Apache2::RequestRec is a Perl API for Apache request record accessors.

    Synopsis

    use Apache2::RequestRec ();

    # set supported by the handler HTTP methods
    $allowed = $r->allowed();

    # auth type
    $auth_type = $r->ap_auth_type();

    # QUERY_STRING
    $args = $r->args();

    # non-parsed-headers handler
    $status = $r->assbackwards();

    # how many bytes were sent
    $bytes_sent = $r->bytes_sent();

    # client connection record
    $c = $r->connection();

    # "Content-Encoding" HTTP response header
    $r->content_encoding("gzip");

    # the languages of the content
    $languages = $r->content_languages();

    # "Content-Encoding" HTTP response header
    $r->content_type('text/plain');

    # special response headers table
    $err_headers_out = $r->err_headers_out();

    # request mapped filename
    $filename = $r->filename();

    # request finfo
    $finfo = $r->finfo();

    # 'SetHandler perl-script' equivalent
    $r->handler('perl-script');

    # was it a HEAD request?
    $status = $r->header_only();

    # request input headers table
    $headers_in = $r->headers_in();

    # request output headers table
    $headers_out = $r->headers_out();

    # hostname
    $hostname = $r->hostname();

    # input filters stack
    $input_filters = $r->input_filters();

    # get the main request obj in a sub-request
    $main_r = $r->main();

    # what's the current request (GET/POST/etc)?
    $method = $r->method();

    # what's the current method number?
    $methnum = $r->method_number();

    # current resource last modified time
    $mtime = $r->mtime();

    # next request object (in redirect)
    $next_r = $r->next();

    # there is no local copy
    $r->no_local_copy();

    # Apache ascii notes table
    $notes = $r->notes();

    # output filters stack
    $output_filters = $r->output_filters();

    # PATH_INFO
    $path_info = $r->path_info();

    # used in configuration directives modules
    $per_dir_config = $r->per_dir_config();

    # pool with life span of the current request
    $p = $r->pool();

    # previous request object in the internal redirect
    $prev_r = $r->prev();

    # connection level input filters stack
    $proto_input_filters = $r->proto_input_filters();

    # HTTP protocol version number
    $proto_num = $r->proto_num();

    # connection level output filters stack
    $proto_output_filters = $r->proto_output_filters();

    # the protocol, the client speaks: "HTTP/1.0", "HTTP/1.1", etc.
    $protocol = $r->protocol();

    # is it a proxy request
    $status = $r->proxyreq($val);

    # Time when the request started
    $request_time = $r->request_time();

    # server object
    $s = $r->server();

    # response status
    $status = $r->status();

    # response status line
    $status_line = $r->status_line();

    # manipulate %ENV of the subprocess
    $r->subprocess_env;
    $r->subprocess_env($key => $val);

    # first HTTP request header
    $request = $r->the_request();

    # the URI without any parsing performed
    $unparsed_uri = $r->unparsed_uri();

    # The path portion of the URI
    $uri = $r->uri();

    # auth username
    $user = $r->user();


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl API | Apache request record | Perl class | RequestRec | Apache | request

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM