This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22342 - combine defaults of status, status message, location, headers, and a body
Summary: combine defaults of status, status message, location, headers, and a body
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Fetch (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+fetchspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-12 18:59 UTC by Marcos Caceres
Modified: 2014-03-25 12:23 UTC (History)
3 users (show)

See Also:


Attachments

Description Marcos Caceres 2013-06-12 18:59:16 UTC
In the request section, components of a request were described individually along with their defaults, but in the Response section status, status message, location, headers, and body are first given, and their defaults later defined. It would be better if each response component was defined in the same way as request (i.e., individually, with the defaults).
Comment 1 Marcos Caceres 2013-06-12 19:00:33 UTC
Same applies to network error... just move the default up to the same line as the one that defines network error.
Comment 2 Anne 2013-06-20 06:10:55 UTC
That doesn't seem entirely right, since network error is just a response whose type is error.

Maybe defining request similarly to response would be better?
Comment 3 Marcos Caceres 2013-06-20 06:45:51 UTC
(In reply to comment #2)
> That doesn't seem entirely right, since network error is just a response
> whose type is error.
> 
> Maybe defining request similarly to response would be better?

I prefer Request the way it is because it makes it easy to look up all the defaults in one place.  However, Response is small enough at the moment that it's not a burden to skim down and find the defaults and possible values.
Comment 4 Anne 2014-03-25 12:23:33 UTC
I have more or less done this now. Feel free to suggest further tweaks.