WordPress / WordPress/Requests

Add body size data to response object

Open
#82 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Core Component: Transports Focus: File handling
Dominant language
PHP
Stars
3.6k
Forks
500
Avg merge
2d 21h
Merged PRs (30d)
5

Description

in Requests_Transport_cURL class, there is an $info parameter which saves curl_getinfo() output, but it's not accessible anyhow.

How can I get it's value?

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 in the Requests_Transport_cURL class and trace how its $info parameter receives curl_getinfo() output and how the response object is built. Expose the relevant body-size value through that response object, then verify that callers can retrieve it without accessing the transport internals.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.