1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

rename requestHeader

This commit is contained in:
Asim Aslam 2019-01-07 18:25:31 +00:00
parent c9963cb870
commit 216dbb771a

View File

@ -385,7 +385,7 @@ func (router *router) freeResponse(resp *response) {
} }
func (router *router) readRequest(codec serverCodec) (service *service, mtype *methodType, req *request, argv, replyv reflect.Value, keepReading bool, err error) { func (router *router) readRequest(codec serverCodec) (service *service, mtype *methodType, req *request, argv, replyv reflect.Value, keepReading bool, err error) {
service, mtype, req, keepReading, err = router.readRequestHeader(codec) service, mtype, req, keepReading, err = router.readHeader(codec)
if err != nil { if err != nil {
if !keepReading { if !keepReading {
return return
@ -422,7 +422,7 @@ func (router *router) readRequest(codec serverCodec) (service *service, mtype *m
return return
} }
func (router *router) readRequestHeader(codec serverCodec) (service *service, mtype *methodType, req *request, keepReading bool, err error) { func (router *router) readHeader(codec serverCodec) (service *service, mtype *methodType, req *request, keepReading bool, err error) {
// Grab the request header. // Grab the request header.
req = router.getRequest() req = router.getRequest()
err = codec.ReadHeader(req, true) err = codec.ReadHeader(req, true)