module Passthrough
Passes response values through without transformation.
Definitions
def self.call(context, request, media_range, object, **options)
Pass an object through without transformation.
Signature
-
parameter
contextObject The context.
-
parameter
requestUtopia::Request The request.
-
parameter
media_rangeProtocol::HTTP::Header::Accept::MediaRange The negotiated media range.
-
parameter
objectObject The object.
-
parameter
optionsHash The options.
-
returns
Object The original body.
Implementation
def self.call(context, request, media_range, object, **options)
return object
end
def self.content_type
The passthrough handler does not specify a response media type.
Signature
-
returns
Nil No media type.
Implementation
def self.content_type
return nil
end