class ActionDispatch::Response::Header
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/action_dispatch/http/response.rbs class ActionDispatch::Response::Header def []=: (String k, String v) -> String def initialize: (ActionDispatch::Response response, Hash header) -> void def to_hash: () -> untyped end
:nodoc:
def []=(k, v)
Experimental RBS support (using type sampling data from the type_fusion
project).
def []=: (String k, String v) -> String
This signature was generated using 3 samples from 1 application.
def []=(k, v) if @response.sending? || @response.sent? raise ActionDispatch::IllegalStateError, "header already sent" end super end
def initialize(response, header)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (ActionDispatch::Response response, X-Frame-Options | String | X-XSS-Protection | String | X-Content-Type-Options | String | X-Download-Options | String | X-Permitted-Cross-Domain-Policies | String | Referrer-Policy | String header) -> void
This signature was generated using 3 samples from 1 application.
def initialize(response, header) @response = response super(header) end
def merge(other)
def merge(other) self.class.new @response, __getobj__.merge(other) end
def to_hash
Experimental RBS support (using type sampling data from the type_fusion
project).
def to_hash: () -> untyped
This signature was generated using 2 samples from 1 application.
def to_hash __getobj__.dup end