Closed Bug 1734764 Opened 4 years ago Closed 4 years ago

Documentation request: Lifecycle of a HTTP request

Categories

(Core :: Networking: HTTP, task, P5)

task

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:

I'm willing to write the documentation patch, but I need someone to help me put the pieces together into a coherent picture.

Assignee: nobody → ajvincent
Status: NEW → ASSIGNED

bravo for adding docs :)

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
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.

Attachment

General

Created:
Updated:
Size: