Spdy 3.1 support

this pull request contains a @Jxck's patch.