You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: rack_rest.rb
    path of file: ./repos/lamby/lib/lamby
    
    the code of the file until where you have to start completion: module Lamby
  class RackRest < Lamby::Rack
    
    class << self

      def handle?(event)
        event.key?('httpMethod')
      end

    en
    
    def response(handler)
      if handler.base64_encodeable?
        { isBase64Encoded: true, body: handler.body64 }
      else
        super
      end.tap do |r|
        if cookies = handler.set_cookies
          r[:multiValueHeaders] ||= {}
          r[:multiValueHeaders]['Set-Cookie'] = cookies
        end
      end