Difference between revisions of "API:EPrints/Apache/AnApache"

From EPrints Documentation
Jump to: navigation, search
Line 11: Line 11:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 21: Line 22:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 29: Line 31:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 43: Line 46:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 55: Line 59:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 67: Line 72:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 79: Line 85:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 93: Line 100:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 105: Line 113:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 117: Line 126:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 129: Line 139:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 145: Line 156:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
Line 153: Line 165:
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>
 
<!-- Edit below this comment -->
 
<!-- Edit below this comment -->
 +
  
 
<!-- Pod2Wiki= -->
 
<!-- Pod2Wiki= -->
 
</div>
 
</div>
 
<!-- Pod2Wiki=_postamble_ --><!-- Edit below this comment -->
 
<!-- Pod2Wiki=_postamble_ --><!-- Edit below this comment -->

Revision as of 19:38, 14 December 2021

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


API: Core API

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::Apache::AnApache - Utility methods for talking to mod_perl

User Comments


DESCRIPTION

This module provides a number of utility methods for interacting with the request object.

User Comments


METHODS

User Comments


send_http_header

EPrints::Apache::AnApache::send_http_header( $request )

Send the HTTP header, if needed.

$request is the current Apache request.

User Comments


header_out

EPrints::Apache::AnApache::header_out( $request, $header, $value )

Set a value in the HTTP headers of the response. $request is the apache request object, $header is the name of the header and $value is the value to give that header.

User Comments


header_in

$value = EPrints::Apache::AnApache::header_in( $request, $header )

Return the specified HTTP header from the current request.

User Comments


$request

$request = EPrints::Apache::AnApache::get_request

Return the current Apache request object.

User Comments


cookie

$value = EPrints::Apache::AnApache::cookie( $request, $cookieid )

Return the value of the named cookie, or undef if it is not set.

This avoids using CGI, so does not consume the POST data.

User Comments


upload_doc_file

EPrints::Apache::AnApache::upload_doc_file( $session, $document, $paramid );

Collect a file named $paramid uploaded via HTTP and add it to the specified $document.

User Comments


upload_doc_archive

EPrints::Apache::AnApache::upload_doc_archive( $session, $document, $paramid, $archive_format );

Collect an archive file (.ZIP, .tar.gz, etc.) uploaded via HTTP and unpack it then add it to the specified document.

User Comments


send_status_line

EPrints::Apache::AnApache::send_status_line( $request, $code, $message )

Send a HTTP status to the client with $code and $message.

User Comments


ranges

$rc = EPrints::Apache::AnApache::ranges( $r, $maxlength, $chunks )

Populates the byte-ranges in $chunks requested by the client.

$maxlength is the length, in bytes, of the resource.

Returns the appropriate byte-range result code or OK if no "Range" header is set.

User Comments


COPYRIGHT

User Comments