-
-
09 Jan 2001 12:12:53 UTC
- Distribution: Metadata
- Module version: 1.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (799 / 0 / 0)
- Kwalitee
Bus factor: 0- 59.55% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (17.67KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Metadata::HTTP - metadata class for HTTP log records
SYNOPSIS
use Metadata::HTTP ... $i=new Metadata::HTTP; open(IN, $logfile); while($i->read('IN')) { print $i->get('agent'),"\n"; } ...
DESCRIPTION
The Metadata::HTTP class allows the handling of HTTP log records as metadata objects using the Metadata::Base class.
The following fields are set after using the read method:
host ident authuser date day month year time hour min sec timezone (in format +/-NNNN) status bytes request - 'GET /foo' etc
Optionally set: referer (if supported by log) agent (if supported by log) http-version (if present) command - GET, POST, etc. path - operand to command
CONSTRUCTOR
- new [OPTIONS]
-
An optional hash of options can be given to the constructor to set various options. There is only one Metadata::HTTP options defined:
- DEBUG
-
This class has a separate debug class / object method that works in the same fashion as the Metadata::Base method debug. Setting it here also sets the debugging on the base Metadata::Base object too.
METHODS
The methods here describe the differences from the Metadata::Base class methods.
- read HANDLE
-
Reads a single line from the file descriptor and uses it to fill the fields of the HTTP metadata object.
- format [URL]
-
Returns the original HTTP line used in the parsing.
SEE ALSO
AUTHOR
By Dave Beckett - http://purl.org/net/dajobe/
COPYRIGHT
Copyright (C) 1997-2001 Dave Beckett - http://purl.org/net/dajobe/ All rights reserved.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 209:
You forgot a '=back' before '=head1'
- Around line 225:
=back doesn't take any parameters, but you said =back 4
Module Install Instructions
To install Metadata::Base, copy and paste the appropriate command in to your terminal.
cpanm Metadata::Base
perl -MCPAN -e shell install Metadata::Base
For more information on module installation, please visit the detailed CPAN module installation guide.