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

Version Path
rest-core-3.6.0 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.92 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.91 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.9 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.8 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.7 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.6 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.5 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.4 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.3 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.2 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.1 lib/rest-core/middleware/default_payload.rb
rest-core-3.5.0 lib/rest-core/middleware/default_payload.rb
rest-core-3.4.1 lib/rest-core/middleware/default_payload.rb
rest-core-3.4.0 lib/rest-core/middleware/default_payload.rb
rest-core-3.3.3 lib/rest-core/middleware/default_payload.rb
rest-core-3.3.2 lib/rest-core/middleware/default_payload.rb
rest-core-3.3.1 lib/rest-core/middleware/default_payload.rb
rest-core-3.3.0 lib/rest-core/middleware/default_payload.rb