module Marten::Handlers::XContentTypeOptions::ClassMethods

Defined in:

marten/handlers/concerns/x_content_type_options.cr

Instance Method Summary

Instance Method Detail

def exempt_from_x_content_type_options(exempt : Bool) : Nil #

Allows to define whether or not the handler responses should be exempted from using X-Content-Type-Options.

Note that this method is only useful when the Marten::Middleware::XContentTypeOptions middleware is being used.


[View source]
def exempt_from_x_content_type_options? #

Returns a boolean indicating if the handler is exempted from using X-Content-Type-Options.


[View source]