HTTP::Headers::ActionPack::MediaType(3pm) | User Contributed Perl Documentation | HTTP::Headers::ActionPack::MediaType(3pm) |
HTTP::Headers::ActionPack::MediaType - A Media Type
version 0.09
use HTTP::Headers::ActionPack::MediaType; # normal constructor my $mt = HTTP::Headers::ActionPack::MediaType->new( 'application/xml' => ( 'q' => 0.5, 'charset' => 'UTF-8' ) ); # construct from string my $mt = HTTP::Headers::ActionPack::MediaType->new_from_string( 'application/xml; q=0.5; charset=UTF-8' );
This is an object which represents an HTTP media type definition. This is most often found as a member of a HTTP::Headers::ActionPack::MediaTypeList object.
In order for two type to be equal, the types must match exactly and the parameters much match exactly.
In order for an exact match to occur it the types must be compatible and the parameters much match exactly.
In order for an exact match to occur it the types must be compatible and the parameters must be a subset.
Stevan Little <stevan.little@iinteractive.com>
This software is copyright (c) 2012 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2022-06-14 | perl v5.34.0 |