-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
support X-Robots-Tag as a typed http header XRobotsTag #382
Comments
Hello, I’ve already completed one issue in this repository ( #358 ), and I really enjoyed the experience. Would it be possible for me to take on this issue as well? My exams are now finished (hopefully), and I have the time to focus on contributing more. I’m still building my experience with Rust and open-source contributions, and I think this issue would be a great opportunity to grow while supporting the project. If there’s anything specific I should keep in mind or prepare before starting, please let me know. Looking forward to your response! |
Nothing in mind, no. All good. |
Hello! I have a few questions about implementing this functionality:
Here’s my proposed plan for implementation:
I’d really appreciate your feedback and corrections on this plan. Please let me know if there’s anything I’ve overlooked or if you have suggestions to refine the approach. Thanks again! |
Regarding your question, rama-http/src/headers/x_robots_tag.rs can it be done in, with the type(s) exported in rama-http/src/headers/ |
Regarding the implementation details I have following guidelines:
Where possible I would keep implementation details private. E.g. (but these are just possibilities):
At the same time, it might make sense to come up with a sensible API and typeset and do expose these. That would then look a lot more like the For encoding/decoding these CSV values you can also get inspired by the I would suggest to try to come up with a PR that shows your approach, even if it's still full of |
It should support the rules as documented in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Robots-Tag
Additionally these rules can also be added:
You can have one or multiple active, some rules are just a value others are a
name: value
pair.By default it can just comma-separate the values, but feel free to make it opt-in to have 1 rule per header (and thus mutliple headers.
The text was updated successfully, but these errors were encountered: