objectstore-client 0.2.10

Client SDK for Objectstore, the Sentry object storage platform
Documentation
1
2
3
4
5
6
//! Utility functions that might be useful when working with Objectstore.

/// Attempts to guess the MIME type from the given contents.
pub fn guess_mime_type<T: AsRef<[u8]>>(contents: T) -> Option<&'static str> {
    infer::get(contents.as_ref()).map(|kind| kind.mime_type())
}