Closed desttinghim closed 2 months ago
BTW really nice work! I like it! I especially like the catch break stuff!
^^^ I just pushed a suggestion commit to this PR
^^^ that last commit was meant for master 🤣
I liked your changes, I've done a little more work on top of them. I count the number of commas up front and allocate the array list. The comma to item relationship should hold for all valid Accept headers I think.
Nice! Ready to merge if you are.
Lets get it merged then :)
Parses the Accept field from the header to return the ranked list of content types the client expects. I'd like feedback on the API - it doesn't seem quite right to me yet.