Skip to main content

Finds content type of request response from content disposition/ content type and when content disposition and content type not present in response headers

Project description

request_content_type_finder

Finds type of requests content in the following cases -

  • content disposition and content type present in response headers
  • when none of the above is present, content type is found using file signatures(magic bytes)

Installation

pip install request-content-type-finder

Usage

from request_content_type_finder import find
find(requests_response)

Contributors

Name Contact
Shivam Kadukar shivamk2802@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

request-content-type-finder-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

request_content_type_finder-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file request-content-type-finder-0.1.0.tar.gz.

File metadata

File hashes

Hashes for request-content-type-finder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0a31438702fdcb7eebc9fffc8a9f972d1fedc36734e14b7facc387946199ac99
MD5 488a45ec0396beb970555e089e11c6da
BLAKE2b-256 b40b29ab6648275b32c4ca9cadff15a15c655582b036d6c4d2725672bae6933b

See more details on using hashes here.

File details

Details for the file request_content_type_finder-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for request_content_type_finder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c570531ce353a94752ab415340eea68b7da2262824ed00cba414f6afc3eaece6
MD5 526b1c35ed5218ee06c136ca86727282
BLAKE2b-256 37b6683d5975deb5eaccd35a98d8645b0c85775fa2ea5056a43e72379fa3c804

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page