dart-lang / dart-lang/http

Get all request and response data as string or json

Open
#505 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

Hi there,

for debugging purposes I want to log all http requests and responses. Therefore; I would be great, if the http.Request and the http.Response classes had a method, which returns all the data, like headers, method, body, status code etc. as a json or a string. Is there some easy way to achieve this, which I haven't noticed yet?

Kind regards

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Dart http.Request and http.Response classes and reviewing how their headers, method, body, and status code are represented. Define the expected string or JSON output for both request and response, then add coverage showing that all requested data is included.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.