Rohde-Schwarz / sparrow

Define your request and response JSON format with a Rack middleware!
MIT License
13 stars 6 forks source link

Refactor steward.rb #7

Closed enricogenauck closed 3 years ago

enricogenauck commented 9 years ago

Currently steward.rb encapsulates some detail-oriented helper methods from middleware.rb. I think, the functionality of those helper methods could also be encapsulated in first class citizen objects like "header" or "content_type". This way we could eliminate the need for utility classes like steward and move the refactoring forward with more semantically valuable objects.