vendor/bundle/ruby/1.8/gems/sinatra-1.2.8/lib/sinatra/base.rb
# Halt processing and redirect to the URI provided.
Halt processing and redirect to the URI provided.
Halt processing and redirect to the URI provided .
def redirect(uri, *args)
      status 302
      response['Location'] = uri(uri, settings.absolute_redirects?, settings.prefixed_redirects?)
      halt(*args)
    end
def redirect ( uri , * args ) status 302 response [ 'Location' ] = uri ( uri , settings . absolute_redirects? , settings . prefixed_redirects? ) halt ( * args ) end
Halt processing and redirect to the URI provided.
Halt processing and redirect to the URI provided .
# According to RFC 2616 section 14.30, "the field value consists of a # single absolute URI"
uri
args