module
Marten::Handlers::XContentTypeOptions::ClassMethods
Defined in:
marten/handlers/concerns/x_content_type_options.crInstance Method Summary
-
#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.
-
#exempt_from_x_content_type_options?
Returns a boolean indicating if the handler is exempted from using X-Content-Type-Options.
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.
def exempt_from_x_content_type_options?
#
Returns a boolean indicating if the handler is exempted from using X-Content-Type-Options.