Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active December 17, 2015 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjunichi/4c3936661c1f1da04843 to your computer and use it in GitHub Desktop.
Save kjunichi/4c3936661c1f1da04843 to your computer and use it in GitHub Desktop.
Trusterd関連のメモ

分かった事

  • req,resは同タイミングで開放できる
  • Methodの取得は現在はs.methodで可能。以前はs.request_headers[":method"]だった。
  • mrb_http2_request_rec構造体の初期化は少なくともリクエスト毎ではない
  • s.request_headersはハッシュではない。[]演算子を定義しているオブジェクトと考えるのがよい模様。

content-typeの設定方法

s.response_headers["content-type"]="text/plain"

OSXのメモリ使用量調査記録

Client

主要ヘッダ

構造体

処理

関連記事

参考資料

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment