ddliu / go-httpclient

Advanced HTTP client for golang
MIT License
465 stars 105 forks source link

Wish to support sort headers of the HTTP request #23

Closed shuxiao9058 closed 7 years ago

shuxiao9058 commented 7 years ago

see title

ddliu commented 7 years ago

Do you mean you want to control the order of the headers to be sent? Why you need it, could you please show me your case?

Currently the implement of go-httpclient headers are stored in a map, which has no order.

shuxiao9058 commented 7 years ago

我想用作网络爬虫,固定次序能够防止服务端检测出来。

ddliu commented 7 years ago

暂时不支持,另外此库是基于golang的http库,golang的也是无序的

shuxiao9058 commented 7 years ago

嗯,目前我采取的方案是修改标准库,能够实现自己想要的功能,但是感觉不太好用。