func writeRequest(c *clientCodec) error { head := rpc.Request{} head.ServiceMethod = "TestFunc" head.Seq = 1 body := testpb.Request{} body.Query = proto.String("ping www.tencent.com") return c.WriteRequest(&head, &body) }