module Arachnid::Resource::ContentTypes

Direct including types

Defined in:

arachnid/resource/content_types.cr

Instance Method Summary

Instance Method Detail

def atom? #

Determines if the resource is an Atom feed.


[View source]
def avi? #

[View source]
def content_charset #

The charset included in the Content-Type.


[View source]
def content_type #

The Content-Type of the resource.


[View source]
def content_types #

The content types of the resource.


[View source]
def css? #

Determines if the resource is a CSS stylesheet.


[View source]
def directory? #

Determines if the resource is a Directory Listing.


[View source]
def flash? #

[View source]
def gif? #

[View source]
def html? #

Determines if the resource is HTML document.


[View source]
def image? #

Determine if the resource is an image.


[View source]
def is_content_type?(type : String | Regex) #

Determines if any of the content-types of the resource include a given type.


[View source]
def javascript? #

Determines if the resource is JavaScript.


[View source]
def jpg? #

[View source]
def json? #

Determines if the resource is JSON.


[View source]
def mp4? #

[View source]
def ms_word? #

Determines if the resource is a MS Word document.


[View source]
def pdf? #

Determines if the resource is a PDF document.


[View source]
def plain_text? #

Determines if the resource is plain-text.


[View source]
def png? #

[View source]
def quicktime? #

[View source]
def rss? #

Determines if the resource is a RSS feed.


[View source]
def svg? #

[View source]
def text? #

Determines if the resource is plain-text.


[View source]
def video? #

[View source]
def wmv? #

[View source]
def xml? #

Determines if the resource is XML document.


[View source]
def xsl? #

Determines if the resource is XML Stylesheet (XSL).


[View source]
def zip? #

Determines if the resource is a ZIP archive.


[View source]