-
Notifications
You must be signed in to change notification settings - Fork 119
Expose copy of header #15
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
Conversation
|
Ah. I had actually completely missed the HeaderParsedEvent. Maybe this addition does not make sense anyway? |
|
I think it's quite weird to use the event for header information tbh, not sure why I put it there. I suggest removing the But in turn I'd suggest removig the helper functions like What do you think? |
|
So it can be nil |
|
Yes, I agree. Since this is a library used by more people, I would suggest not removing the If you haven't done this before I get to work on it during next week, feel free do do the work on my PR. Also, if you have any code that you'd like reviewed, feel free to make a PR and assign it to me. |
|
I think that today, with tools like As a compromise (to not break peoples code if they don't use dep yet) I'd go for deprecating it (via comment) and removing it in
Thanks! Will keep it in mind |
* Return header in ParseHeader() * Deprecated HeaderParsedEvent (GoDoc) * Deprecated Parser.Map()
|
Let me know if you think this looks good and I'll merge it. |
|
Looks good! |
Hey,
I needed to use header information in my consumption of the API.
I suggest to return only a copy of the header since information in it is used during demo parsing, i.e.
Progress.Best,
Michael