Codex

URI::data

Section: User Contributed Perl Documentation (3pm)

Updated: 2014-07-13

Index?action=index Return to Main Contents


NAME

URI::data - URI that contains immediate data

SYNOPSIS

DESCRIPTION

The class supports objects belonging to the data URI scheme. The data URI scheme is specified in RFC 2397. It allows inclusion of small data items as ``immediate'' data, as if it had been included externally. Examples:
objects belonging to the data scheme support the common methods (described in URI) and the following two scheme-specific methods:
$uri->media_type( [$new_media_type] )
Can be used to get or set the media type specified in the URI. If no media type is specified, then the default is returned.:
$uri->data( [$new_data] )
Can be used to get or set the data contained in the URI. The data is passed unescaped (in binary form). The decision about whether to base64 encode the data in the URI is taken automatically, based on the encoding that produces the shorter URI string.:

SEE ALSO

URI

COPYRIGHT

Copyright 1995-1998 Gisle Aas.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Index

NAME

SYNOPSIS

DESCRIPTION

SEE ALSO

COPYRIGHT