why is golang http designed using io.reader rather than string or byte slice as post data?

后端 未结 0 443
梦如初夏
梦如初夏 2021-02-04 10:53

I think the post data is just stored in request body. so string or byte slice is handy to use like this:

http.NewRequest("POST", "example.com"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题