タグ

httpに関するkabiyのブックマーク (2)

  • httpstat.us

    This is a super simple service for generating different HTTP codes. It's useful for testing how your own scripts deal with varying responses. Just add the status code you want to the URL, like this: httpstat.us/200 We'll return a response like this: HTTP/1.1 {status code} {status description} Content-Type: text/plain or application/json Content-Length: {something} {any custom response headers} {st

  • Erlangのhttpドーピング - みかログ

    Erlangで書かれたWebサーバのyawsはかなり速い. Apache並の性能が出る. それはErlangが速いからだと思っていた. でも,ソースを読んでみたら,ドーピングされていることがわかった. 同様のアプリで,mochiwebというErlangで書かれたWebサーバのフレームワークもあるけれど,これも同じでその方法を使っていた. Erlangでは,TCP通信のドライバにいろいろなモードがあって,行単位で応答を返したり,FCGIやCORBAのパケットをあつかったりすることができる. Erlangのマニュアルには書かれていないけれど,このモードにhttpというものがあって,それを使うと,httpヘッダの解析などをC言語で書かれたドライバ内で行うことができる模様. undocumentedだけども,どちらのフレームワークも使用しているということは,その辺よく研究しているということなのかな

    Erlangのhttpドーピング - みかログ
  • 1