Packages / openSUSE Leap 15.6 / Development/Libraries/Perl / perl-LWP-MediaTypes

Package: perl-LWP-MediaTypes (6.02-1.25)

guess media type for a file or a URL

This module provides functions for handling media (also known as MIME) types and encodings. The mapping from file extensions to media types is defined by the _media.types_ file. If the _~/.media.types_ file exists it is used instead. For backwards compatibility we will also look for _~/.mime.types_. The following functions are exported by default: * guess_media_type( $filename ) * guess_media_type( $uri ) * guess_media_type( $filename_or_uri, $header_to_modify ) This function tries to guess media type and encoding for a file or a URI. It returns the content type, which is a string like '"text/html"'. In array context it also returns any content encodings applied (in the order used to encode the file). You can pass a URI object reference, instead of the file name. If the type can not be deduced from looking at the file name, then guess_media_type() will let the '-T' Perl operator take a look. If this works (and '-T' returns a TRUE value) then we return _text/plain_ as the type, otherwise we return _application/octet-stream_ as the type. The optional second argument should be a reference to a HTTP::Headers object or any object that implements the $obj->header method in a similar way. When it is present the values of the 'Content-Type' and 'Content-Encoding' will be set for this header. * media_suffix( $type, ... ) This function will return all suffixes that can be used to denote the specified media type(s). Wildcard types can be used. In a scalar context it will return the first suffix found. Examples: @suffixes = media_suffix('image/*', 'audio/basic'); $suffix = media_suffix('text/html'); The following functions are only exported by explicit request: * add_type( $type, @exts ) Associate a list of file extensions with the given media type. Example: add_type("x-world/x-vrml" => qw(wrl vrml)); * add_encoding( $type, @ext ) Associate a list of file extensions with an encoding type. Example: add_encoding("x-gzip" => "gz"); * read_media_types( @files ) Parse media types files and add the type mappings found there. Example: read_media_types("conf/mime.types");

Package information

Homepage
[http://search.cpan.org/dist/LWP-MediaTypes/]
License
Artistic-1.0 or GPL-1.0+
Downstream package maintainer
Unknown: not reported in the indexed source
Source package
[perl-LWP-MediaTypes]
Software project
[perl-LWP-MediaTypes]

Versions and downloads for perl-LWP-MediaTypes

Version / releaseArchitecture / repositoryPackage sizeInstalled sizeFilesPublisher repository artifact
6.02-1.25leap-15.6 / ossnoarchopenSUSE Leap 15.6 · OSS · multi-architecture27 KiB61 KiBlist of filesperl-LWP-MediaTypes-6.02-1.25.noarch.rpm
About these downloads

Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.

Dependencies and recommendations for perl-LWP-MediaTypes

  • dep: perl(:MODULE_COMPAT_5.26.1)

    Package not available

Package file paths (8)

Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.

  • /usr/lib/perl5/vendor_perl/5.26.1/LWP
  • /usr/lib/perl5/vendor_perl/5.26.1/LWP/media.types
  • /usr/lib/perl5/vendor_perl/5.26.1/LWP/MediaTypes.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
  • /usr/share/doc/packages/perl-LWP-MediaTypes
  • /usr/share/doc/packages/perl-LWP-MediaTypes/Changes
  • /usr/share/doc/packages/perl-LWP-MediaTypes/README
  • /usr/share/man/man3/LWP::MediaTypes.3pm.gz

Field source: openSUSE Leap 15.6 OSS

Known vulnerabilities

No matching advisories in the tracked sources.

Last synced:

[CVE catalog]

Checksums

Repository signatures authenticate metadata. Artifact hashing is recorded separately. Neither establishes package safety.

6.02-1.25 / noarchObserved Sep 1, 2026sha512 ed4b94624440…42b469e6Source-reported digest

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Source-reported digest (sha512): ed4b94624440af67a0dc36b85776737518028bd105739ef5412e1371dd6026c2cd8729096b98b402f3f27648308e8feb95c4d001129d48cf27793ef942b469e6

Field source: openSUSE Leap 15.6 OSS

Sources

  • Authoritative source; repository metadata signature verified

    Signature evidence

    leap-15-6-oss-multiarch:ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230

    Repository-signature verification record
    Signed-object SHA-256
    ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable

Use this package

OpenFactory can boot this operating system in a browser VM, or start a build that includes the native package name from this record.