antch icon indicating copy to clipboard operation
antch copied to clipboard

Can't set the request header

Open liuzeng01 opened this issue 4 years ago • 1 comments

Sometimes we would build one request that having different request header ,but the antch don't have this setting method .Yeah ,Can we add this function in the antch spider?Just like doing one interface in the crawler settings.

liuzeng01 avatar May 02 '20 16:05 liuzeng01

you can make a middleware to sets request header, like Compression middleware.

https://github.com/antchfx/antch/blob/master/compression.go

zhengchun avatar May 02 '20 16:05 zhengchun