15 May '12, 8pm

@bleything tried the #stream helper?

# app running on http://example.com/example get '/foo' do t = %w[text/css text/html application/javascript] request.accept # ['text/html', '*/*'] request.accept? 'text/xml' # true request.preferred_type(t) # 'text/html' request.body # request body sent by the client (see below) request.scheme # "http" request.script_name # "/example" request.path_info # "/foo" request.port # 80 request.request_method # "GET" request.query_string # "" request.content_length # length of request.body request.media_type # media type of request.body request.host # "example.com" request.get? # true (similar methods for other verbs) request.form_data? # false request["SOME_HEADER"] # value of SOME_HEADER header request.referrer # the referrer of the client or '/' request.user_agent # user agent (used by :agent condition) request.cookies # hash of browser cookies request.xhr? # is this an ajax req...

Full article: http://www.sinatrarb.com/intro#Streaming%20Responses

Tweets

Game 7!Watch Los Angeles Lakers vs Denver Nugge...

renewableenergyworld.com 13 May '12, 3am

Do you want to watch Los Angeles Lakers vs Denver Nuggets live stream online free NBA Playoffs 2012? Searching for a good ...

Sinatra: README (Chinese):

sinatrarb.com 25 May '12, 4am

# 在 http://example.com/example 上运行的应用 get '/foo' do request.body # 被客户端设定的请求体(见下) request.scheme # "http" request.script_n...

Children's Ice Cream workshop, anyone tried bef...

kiasuparents.com 12 May '12, 4am

I signed up my 2 kids, in the end only one attended. The younger one don't want to be left alone and cried. They were stri...

Case dismissed against man who tried to take Masters sand

Case dismissed against man who tried to take Ma...

augusta.com 10 May '12, 5pm

An Ohio man who was arrested during the final round of the Masters Tournament in what police say was a failed attempt to s...