Merge pull request #362 from micro/codec

Make json/protobuf/grpc codecs
This commit is contained in:
Asim Aslam
2019-01-02 18:01:34 +00:00
committed by GitHub
7 changed files with 305 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
package transport
import (
//"fmt"
"bufio"
"bytes"
"crypto/tls"
@@ -246,6 +245,9 @@ func (h *httpTransportSocket) Recv(m *Message) error {
}
}
// set path
m.Header[":path"] = h.r.URL.Path
// return early early
return nil
}
@@ -277,6 +279,9 @@ func (h *httpTransportSocket) Recv(m *Message) error {
}
}
// set path
m.Header[":path"] = h.r.URL.Path
return nil
}