Module: Rapid::Server::Helpers

Defined in:
lib/ury_rapid/server/helpers.rb,
lib/ury_rapid/server/helpers/auth.rb,
lib/ury_rapid/server/helpers/files.rb,
lib/ury_rapid/server/helpers/error.rb,
lib/ury_rapid/server/helpers/model.rb,
lib/ury_rapid/server/helpers/streaming.rb,
lib/ury_rapid/server/helpers/inspector.rb

Overview

Sinatra helper sets for the Rapid HTTP server

Much of the nitty-gritty of the server is in these helpers.

Defined Under Namespace

Modules: Auth, Error, Files, Inspector, Model, Streaming

Instance Method Summary collapse

Instance Method Details

#okString

Renders a 'request sent OK' message

This should be used for PUT, POST and DELETE responses. There is a special handler for GET, and OPTIONS returns CORS headers.

Returns:

  • (String)

    The OK message, rendered according to the client's Accept headers.


80
81
82
# File 'lib/ury_rapid/server/helpers/model.rb', line 80

def ok
  respond_with :ok, status: :ok
end