Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Refactor http messages to be class-like #30

Open
EricWF opened this issue Jun 3, 2014 · 3 comments
Open

Refactor http messages to be class-like #30

EricWF opened this issue Jun 3, 2014 · 3 comments
Labels

Comments

@EricWF
Copy link
Member

EricWF commented Jun 3, 2014

Currently HTTP messages are POD's. There are many external functions that make more sense as methods.

Currently I think direct access to data should remain possible. This may change.

@EricWF EricWF modified the milestone: V0.3 Jun 3, 2014
@daniel-dressler
Copy link
Contributor

HTTP is used for binary formats like IPP so direct data access may be needed long-term. Instead would making it const be sufficient?

@EricWF EricWF added the question label Jun 3, 2014
@EricWF
Copy link
Member Author

EricWF commented Jun 3, 2014

I think you'll always have raw access to the data after the header. The struct currently has a collection of fields as well (Key-Value pairs). I was thinking of guarding access to the list of fields.

@daniel-dressler
Copy link
Contributor

Good idea then, guarding access to the raw list makes sense.

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

No branches or pull requests

2 participants