Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mongrel 2

Mongrel 2

A quick introduction to the Mongrel 2 webserver protocol.

Will Speak

March 30, 2016
Tweet

More Decks by Will Speak

Other Decks in Technology

Transcript

  1. Request 1 Server IIS-01 Headers { “method”: “post”, … }

    Path /LockedQueueNoSql Body { “name”: “willspeak”, “affiliates”: [ …. ]}
  2. Request 1 Server IIS-01 Headers { “method”: “post”, … }

    Path /LockedQueueNoSql Body { “name”: “willspeak”, “affiliates”: [ …. ]}
  3. REQUEST PACKET FORMAT IIS-01 1 hello/world 2:{},4:body, webserver id requested

    path numeric request id netstring encoded json request headers netstring encoded request body
  4. RESPONSE PACKET FORMAT IIS-01 1:1, hello Mongrel2 webserver id response

    data space-separated netstring of response ids