tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
603 stars 102 forks source link

spdylay_submit_request callers shouldn't need to know if the spdy version is spdy2 or spdy3 #15

Closed sorced-jim closed 12 years ago

sorced-jim commented 12 years ago

The documentation for spdylay_submit_request says that the caller has to know to set host or :host, etc.

Instead the caller should always set :method, :version, :host, :path, and :scheme and spdylay should downgrade those to the spdy2 names when spdy2 is in use.

tatsuhiro-t commented 12 years ago

Done. I also changed reception side: received SPDY/2 name/value pairs are converted to SPDY/3 style name/value pairs. The callback functions receive SPDY/3 name/value pairs.