タグ

rackに関するwillnetのブックマーク (21)

  • File: SPEC — Documentation for rack/rack (master)

    This specification aims to formalize the Rack protocol. You can (and should) use Rack::Lint to enforce it. When you develop middleware, be sure to add a Lint before and after to catch all mistakes. Rack applications A Rack application is a Ruby object (not a class) that responds to call. It takes exactly one argument, the environment and returns an Array of exactly three values: The status, the he

    willnet
    willnet 2016/06/15
  • File: SPEC — Documentation for rack/rack (master)

    This specification aims to formalize the Rack protocol. You can (and should) use Rack::Lint to enforce it. When you develop middleware, be sure to add a Lint before and after to catch all mistakes. Rack applications A Rack application is a Ruby object (not a class) that responds to call. It takes exactly one argument, the environment and returns an Array of exactly three values: The status, the he

    willnet
    willnet 2016/05/03
  • GitHub - cyu/rack-cors: Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - cyu/rack-cors: Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.
    willnet
    willnet 2015/03/06
  • 最近の Rack サーバ事情について - おもしろwebサービス開発日記

    先月、heroku推しサーバが unicorn から puma に変わったという発表がありました。unicorn だとスロークライアントの影響を受けやすいというのが理由なようです。 もう少し詳しく調べてみましょう。 そもそもスロークライアントってなに その名の通り遅い回線のクライアントです。3G環境のモバイル端末などが該当します。 「unicorn だとスロークライアントの影響を受けやすい」とは unicorn はプロセスモデルのサーバであり、blocking I/O モデルを採用しています。つまり、クライアントとの通信中プロセスが専有されるということです。 例えば unicorn がワーカプロセスを3つ立ち上げていて、そこへ通信完了に10分かかるようなスロークライアントが3つ接続されたら…、続くクライアントはスロークライアントの通信が完了するまで実行を待たなければならなくなります。プ

    最近の Rack サーバ事情について - おもしろwebサービス開発日記
    willnet
    willnet 2015/02/25
    herokuの推しサーバ変更の件と、ginza.rb ミートアップでの知見を合わせてまとめてみました
  • what is X-Cascade header

    Rack documentation says that File servers support X-Cascade header rack-mount says that Rack::Mount supports Rack’s +X-Cascade+ convention What is X-Cascade ? I could not find any documentation on X-Cascade.

    what is X-Cascade header
    willnet
    willnet 2013/06/11
    X-Cascade は別の middleware に渡す用の情報を詰めておくためのヘッダなのかな
  • monoweb.info - このウェブサイトは販売用です! - monoweb リソースおよび情報

    このウェブサイトは販売用です! monoweb.info は、あなたがお探しの情報の全ての最新かつ最適なソースです。一般トピックからここから検索できる内容は、monoweb.infoが全てとなります。あなたがお探しの内容が見つかることを願っています!

    willnet
    willnet 2012/08/05
    あとで
  • How Does Rack Parse Query Params? With parse_nested_query - Codefolio

    What turns URL params like http://site.com/people?name=bobo into { :name => “bobo” } in Ruby? And what turns extra-weird Rails or Sinatra params like /path?people[][name]=bobo&people[][first_love]=cheese? What the Hell is that? Googling “rails query param names with square brackets” doesn’t help much. And Rails doesn’t make it easy to find docs for this. So what’s going on with the weird params? R

    willnet
    willnet 2012/07/13
    Rack::Utils.parse_nested_query(params)でクエリのパースをしてる/[]は配列で[a]はハッシュ
  • Rack::Cache

    Rack::Cache is suitable as a quick drop-in component to enable HTTP caching for Rack-based applications that produce freshness (Expires, Cache-Control) and/or validation (Last-Modified, ETag) information. Standards-based (see RFC 2616 / Section 13). Freshness/expiration based caching Validation Vary support Portable: 100% Ruby / works with any Rack-enabled framework. Disk, memcached, and heap memo

    willnet
    willnet 2012/02/22
  • Rack MiddlewareのGemに対するRspecの書き方 - a newcomer!

  • warning: already initialized constant WFKV_ - <gitrhythm /> Blog


    rack, rubyruby 1.9.2p290rails3.1.1rack1.3.4 rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_ 調 common_192.rb53remove_const :WFKV_WFKV_Rack Commit 235f83cb88650beaa7fd0089ee0d19ca46507fc0 to rack/rack - GitHubremove_const :WFKV_ WFKV_ = '(?:[^%#=;&]*(?:%\h\h[^%#=;&]*)
  • Node powered Rack server

    nack nack NAME nack - Node powered Rack server DESCRIPTION nack is a Rack server built on top of the Node.js HTTP server. Node does all the hard work of accepting and parsing HTTP requests and nack simply passes it along to a Ruby worker process as a serialized object. You can read more about how the IPC protocol works. Besides running as a standalone Rack server, you can use the JS API to run mul

    willnet
    willnet 2011/05/26
    powはこれ使ってる
  • Rack::Rewrite の README を超訳してみました « blog.udzura.jp


    Rack::Rewrite heroku  rewrite rule  README 使  gist: 972903   This entry was posted on 2011515, 2:46 PMand is filed under Ruby. You can follow any responses to this entry throug
    willnet
    willnet 2011/05/15
    rackでのmod_rewrite。herokuとかでURL書き換えたいときに使う
  • Node.js+CoffeeScriptで書かれた「Pow」がカッコ良すぎる件:Rails Hub情報局:エンジニアライフ


    RubyonRailsDHH37signalsMac OS XRackPow使Node.jsCoffeeScript使 PowZero-configurationRails/Sinatracurl $ curl get.pow.cx | sh RailsSinatraRackPow
    Node.js+CoffeeScriptで書かれた「Pow」がカッコ良すぎる件:Rails Hub情報局:エンジニアライフ
    willnet
    willnet 2011/04/09
  • https://asciicasts.com/episodes/151-rack-middleware

    willnet
    willnet 2010/09/28
    すごくためになった
  • Rackの復習 - maeshimaの日記

    Ruby Freaks Lounge:第23回 Rackとは何か(1)Rackの生まれた背景|gihyo.jp … 技術評論社 Ruby Freaks Lounge:第24回 Rackとは何か(2)Rackの使い方|gihyo.jp … 技術評論社 を読み直してのメモ。 Rackアプリケーションに必要なこと 下記を満たすオブジェクトがあること。 callというメソッドを持っていること callメソッドの引数としてWebサーバからのリクエストを受けること callメソッドは,次の要素を含むレスポンスを返すること ステータスコード レスポンスヘッダ(Hash) レスポンスボディ(Array) Rackアプリの立ち上げ rackupコマンド。オプションいろいろ。 -s, --server SERVER serve using SERVER (webrick/mongrel) -o, --host

    Rackの復習 - maeshimaの日記
    willnet
    willnet 2010/07/09
    復習用セルクマ/あとで見直す
  • File: SPEC ['Rack Documentation']

    This specification aims to formalize the Rack protocol. You can (and should) use Rack::Lint to enforce it. When you develop middleware, be sure to add a Lint before and after to catch all mistakes. Rack applications A Rack application is an Ruby object (not a class) that responds to call. It takes exactly one argument, the environment and returns an Array of exactly three values: The status, the h

    willnet
    willnet 2010/02/04
  • Racksh: A Rails-Console-A-Like for Rack-Based Ruby Apps

    Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Have you ever yearned for something like Rails's script/console or Merb's merb -i in your other Rack based apps? If so, then Marcin Kulik's racksh, inspired by Heroku's console, might be for you. Racksh is a console for Rack based ruby web applications. It allows you run a console in the context of an application environme

    willnet
    willnet 2009/11/24
    rackアプリ用のscript/console
  • 第25回 Rackとは何か(3)ミドルウェアのすすめ | gihyo.jp


    RackRackRack使Rack  Rack WebURLCookie
    第25回 Rackとは何か(3)ミドルウェアのすすめ | gihyo.jp
    willnet
    willnet 2009/11/16
    rack用のミドルウェア開発のススメ
  • 第24回 Rackとは何か(2)Rackの使い方 | gihyo.jp


    RackRackRack使 rackupRack::Builderconfig.rurackup使 Rackconfig.rurackuprurackupRacksimple_app.rbif
    第24回 Rackとは何か(2)Rackの使い方 | gihyo.jp
    willnet
    willnet 2009/11/09
    サーバ依存のコードははconfig.ruに書く/Rack::RequestとRack::Responseでリクエストとレスポンスをラップ/Rack::MockRequestでリクエストのモックを書ける(rspecでもできるのかな)/Rack::URLMapでsinatraっぽいマッピング
  • 第23回 Rackとは何か(1)Rackの生まれた背景 | gihyo.jp


     SinatraRamazeRubyWebRack使Rack  RubyonRailsRubyRailsWebRailsWebRubyRails RubyWeb
    第23回 Rackとは何か(1)Rackの生まれた背景 | gihyo.jp
    willnet
    willnet 2009/10/26
    一つ以上の引数を受けつけるcallメソッドを持っているオブジェクト/ステータスコード、レスポンスヘッダ、レスポンスボディを返す/これだけでrackアプリが作れる