Sha256: 9e3f05ae5d4e7f0890a94f221c7a43a91045e84b9b8ca73928d3464780b858be
Contents?: true
Size: 275 Bytes
Versions: 19
Compression:
Stored size: 275 Bytes
Contents
require 'rest-core/middleware' class RestCore::DefaultPayload def self.members; [:payload]; end include RestCore::Middleware def call env, &k p = merge_hash(@payload, payload(env), env[REQUEST_PAYLOAD]) app.call(env.merge(REQUEST_PAYLOAD => p), &k) end end
Version data entries
19 entries across 19 versions & 1 rubygems