Closed edpaget closed 6 years ago
This makes the ContentTypeHandlers global to all Angelo::Base subclasses rather than being per-subclass. My take on things was that everything should be per-subclass to allow multiple angelo servers in one application. Never mind that Reponder had a global content type, that was something that needed to be fixed IMO.
Here's a test for cross-subclass leakage:
Thanks. I try to revise this to prevent leakage. I don't think it'll be too much of an issue to handle that all.
Allow new content types to be declared with custom handling for response creation and validation.
Closes #22
I still need to add some tests for the content handler functionality. I figured I'd post this make sure you were okay with the design before I finished adding them.