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 context Object

The context.

parameter request Utopia::Request

The request.

parameter media_range Protocol::HTTP::Header::Accept::MediaRange

The negotiated media range.

parameter object Object

The object.

parameter options Hash

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