class Marten::Conf::GlobalSettings::MethodOverride

Overview

Allows to configure settings related to the method override middleware.

Defined in:

marten/conf/global_settings/method_override.cr

Instance Method Summary

Instance Method Detail

def allowed_methods : Array(String) #

Returns an array containing the HTTP methods allowed for override.


[View source]
def allowed_methods=(methods) #

Sets the array of HTTP methods that are allowed for override.


[View source]
def http_header_name : String #

Returns the name of the HTTP header used to signal method overrides (e.g., in forms).


[View source]
def http_header_name=(http_header_name : String) #

Sets the name of the HTTP header used for method overrides.


[View source]
def input_name : String #

Returns the name of the input field used to signal method overrides (e.g., in forms).


[View source]
def input_name=(input_name : String) #

Sets the name of the input field used for method overrides.


[View source]