mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-27 23:12:20 +00:00
ch4-01-fix typo
This commit is contained in:
parent
0b39251dec
commit
3d79872a23
@ -291,7 +291,7 @@ type serverResponse struct {
|
||||
|
||||
Go语言内在的RPC框架已经支持在Http协议上提供RPC服务。但是框架的http服务同样采用了内置的gob协议,并且没有提供采用其它协议的接口,因此从其它语言依然无法访问的。在前面的例子中,我们已经实现了在纯的TCP协议之上运行jsonrpc服务,并且可以通过nc命令行工具成功实现了RPC方法调用。现在我们尝试在http协议上提供jsonrpc服务。
|
||||
|
||||
心的RPC服务其实是一个类似REST规范的接口,采用请求和相应处理流程:
|
||||
新的RPC服务其实是一个类似REST规范的接口,接收请求和采用相应处理流程:
|
||||
|
||||
```go
|
||||
func main() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user