mod_perl logo
perl icon







previous page: Apache::RequestUtil - Perl API for Apache request record utilspage up: mod_perl APIsnext page: Apache::Server - Perl API for for Apache server record accessors


Apache::Response - Perl API for Apache HTTP request response methods











The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern


Table of Contents

Synopsis

  use Apache::Response ();

META: to be completed



TOP

Description

META: to be completed



TOP

API

Apache::Response provides the following functions and/or methods:



TOP

custom_response

META: Autogenerated - needs to be reviewed/completed

Install a custom response handler for a given status

  $r->custom_response($status, $string);


TOP

make_etag

META: Autogenerated - needs to be reviewed/completed

Construct an entity tag from the resource information. If it's a real file, build in some of the file characteristics.

  $etag = $r->make_etag($force_weak);


TOP

meets_conditions

META: Autogenerated - needs to be reviewed/completed

Implements condition GET rules for HTTP/1.1 specification. This function inspects the client headers and determines if the response fulfills the requirements specified.

  $ret = $r->meets_conditions();


TOP

rationalize_mtime

META: Autogenerated - needs to be reviewed/completed

Return the latest rational time from a request/mtime pair. Mtime is returned unless it's in the future, in which case we return the current time.

  $rat_mtime = $r->rationalize_mtime($mtime);


TOP

send_error_response

META: Autogenerated - needs to be reviewed/completed

Send error back to client.

  $r->send_error_response($recursive_error);


TOP

send_mmap

META: Autogenerated - needs to be reviewed/completed

Send an MMAP'ed file to the client

  $ret = $r->send_mmap($mm, $offset, $length);


TOP

set_content_length

META: Autogenerated - needs to be reviewed/completed

Set the content length for this request.

  $r->set_content_length($length);


TOP

set_etag

META: Autogenerated - needs to be reviewed/completed

Set the E-tag outgoing header

  $r->set_etag();


TOP

set_keepalive

META: Autogenerated - needs to be reviewed/completed

Set the keepalive status for this request

  $ret = $r->set_keepalive();


TOP

update_mtime

META: Autogenerated - needs to be reviewed/completed

Function to set the r->mtime field to the specified value if it's later than what's already there.

  $r->update_mtime($dependency_mtime);


TOP

set_last_modified

META: Autogenerated - needs to be reviewed/completed

  $r->set_last_modified($mtime);


TOP

send_cgi_header

META: Autogenerated - needs to be reviewed/completed

  $r->send_cgi_header($buffer);


TOP

See Also

mod_perl 2.0 documentation.



TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 1.1.



TOP

Authors

The mod_perl development team and numerous contributors.







TOP
previous page: Apache::RequestUtil - Perl API for Apache request record utilspage up: mod_perl APIsnext page: Apache::Server - Perl API for for Apache server record accessors