Closed
Bug 1734764
Opened 4 years ago
Closed 4 years ago
Documentation request: Lifecycle of a HTTP request
Categories
(Core :: Networking: HTTP, task, P5)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
95 Branch
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: WeirdAl, Assigned: WeirdAl)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
I'm trying to figure out from various pieces of Mozilla code when the following are available and how to get them without altering them.
- HTTP request method
- HTTP request headers
- HTTP request body
- HTTP response status
- HTTP response headers
- HTTP response body
I just want to add a page under https://firefox-source-docs.mozilla.org/networking/index.html to summarize these. I think all of this is available via the 'http-on-modify-request' and 'http-on-examine-response' methods. I'd want several columns:
| Data | Observer topic | Sample JS code |
| HTTP request code | http-on-modify-request
| return channel.requestMethod;
|
A numbered list for when certain events happen - and when to use (and not use) them - would be nice too:
- The start of the request
- Observer service notifications
- HTTP Activity Observers
- URI Loaders and URI Content Listeners
- When "stream listener tees" cache data and when they pass it on to the next stream listener
- When and how it's safe to cancel a request/response
- Whatever else I'm missing
- The end of the response
I'm willing to write the documentation patch, but I need someone to help me put the pieces together into a coherent picture.
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → ajvincent
Status: NEW → ASSIGNED
Comment 2•4 years ago
|
||
bravo for adding docs :)
Updated•4 years ago
|
Severity: -- → S4
Type: defect → task
Priority: -- → P5
Whiteboard: [necko-triaged]
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e783412ae439
Document the lifecycle of a HTTP request, and how to extract data from it. r=firefox-source-docs-reviewers,necko-reviewers,sylvestre,dragana DONTBUILD
Comment 4•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•