Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set the request header #12

Open
liuzeng01 opened this issue May 2, 2020 · 1 comment
Open

Can't set the request header #12

liuzeng01 opened this issue May 2, 2020 · 1 comment

Comments

@liuzeng01
Copy link

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.

@zhengchun
Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants