class Awscr::S3::ContentType

Overview

Determines the Content-Type of IO

Defined in:

awscr-s3/content_type.cr

Constant Summary

DEFAULT = "binary/octet-stream"

The default content type if one can not be determined from the filename

Class Method Summary

Class Method Detail

def self.get(io : IO) : String #

Gets a content type based on the file extesion, if there is no file extension it uses the default content type


[View source]