class Octopusci::Server
Public Instance Methods
protected!()
click to toggle source
# File lib/octopusci/server.rb, line 15 def protected! unless authorized? response['WWW-Authenticate'] = %(Basic realm="Restricted Area") throw(:halt, [401, "Not authorized\n"]) end end