Apache2::RequestRec

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

Apache2::RequestRec Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • mod_perl Team
  • Publisher web site:
  • http://search.cpan.org/~pgollucci/mod_perl-2.0.3/docs/api/Apache2/Log.pod

Apache2::RequestRec Tags


Apache2::RequestRec Description

Apache2::RequestRec is 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(); Requirements: · Perl


Apache2::RequestRec Related Software