Sha256: c1f985cff9eb726423927a507446e0167bcb7d6b17e901d5dcc3a0606c02584d

Contents?: true

Size: 720 Bytes

Versions: 104

Compression:

Stored size: 720 Bytes

Contents

class Jets::RackController < Jets::Controller::Base
  layout false
  internal true

  # Megamode
  def process
    resp = mega_request
    render(resp)
  end

private
  # Override process! so it doesnt go through middleware adapter and hits
  # process logic directly. This handles the case for AWS Lambda.
  # For local server, we adjust the Middleware::Local logic.
  def process!
    status, headers, body = dispatch!
    # Use the adapter only to convert the Rack triplet to a API Gateway hash structure
    adapter = Jets::Controller::Rack::Adapter.new(event, context, meth)
    adapter.convert_to_api_gateway(status, headers, body)
  end

  def mega_request
    Jets::Mega::Request.new(event, self).proxy
  end
end

Version data entries

104 entries across 104 versions & 3 rubygems

Version Path
jets_bb_fork-0.0.4 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.32 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.31 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.30 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.29 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.28 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.27 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.26 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.25 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.24 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.23 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.22 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.21 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.20 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.19 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.18 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.17 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.16 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.15 lib/jets/internal/app/controllers/jets/rack_controller.rb
jets-1.9.14 lib/jets/internal/app/controllers/jets/rack_controller.rb