debian man page for mojo::asset

Query: mojo::asset

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Mojo::Asset(3pm)					User Contributed Perl Documentation					  Mojo::Asset(3pm)

NAME
Mojo::Asset - HTTP 1.1 content storage base class
SYNOPSIS
use Mojo::Base 'Mojo::Asset';
DESCRIPTION
Mojo::Asset is an abstract base class for HTTP 1.1 content storage.
ATTRIBUTES
Mojo::Asset implements the following attributes. "end_range" my $end = $asset->end_range; $asset = $asset->end_range(8); Pretend file ends earlier. "start_range" my $start = $asset->start_range; $asset = $asset->start_range(0); Pretend file starts later.
METHODS
Mojo::Asset inherits all methods from Mojo::EventEmitter and implements the following new ones. "add_chunk" $asset = $asset->add_chunk('foo bar baz'); Add chunk of data to asset, meant to be overloaded in a subclass. "contains" my $position = $asset->contains('bar'); Check if asset contains a specific string, meant to be overloaded in a subclass. "get_chunk" my $chunk = $asset->get_chunk($offset); Get chunk of data starting from a specific position, meant to be overloaded in a subclass. "is_file" my $false = $asset->is_file; False. "move_to" $asset = $asset->move_to('/home/sri/foo.txt'); Move asset data into a specific file, meant to be overloaded in a subclass. "size" my $size = $asset->size; Size of asset data in bytes, meant to be overloaded in a subclass. "slurp" my $string = $asset->slurp; Read all asset data at once. Meant to be overloaded in a subclass.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Asset(3pm)
Related Man Pages
ledgersmb::dbobject::asset_class(3pm) - debian
mojo::asset::file(3pm) - debian
mojo::content::multipart(3pm) - debian
mojo::server(3pm) - debian
mojo::transaction(3pm) - debian
Similar Topics in the Unix Linux Community
Complex Event Processing and FX market aggregation
enetman V2 (Default branch)
SysAid 5.1 (Default branch)
SMI 0.9.9n (Default branch)
SMI 0.9.9o (Default branch)