Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient] make $response->getInfo('debug') return extended logs about the HTTP transaction#31641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:4.3fromnicolas-grekas:hc-debug
May 28, 2019

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedMay 27, 2019
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

This maps theCURLOPT_VERBOSE mode of curl to thedebug info and emulates it when usingNativeHttpClient.

For example:

* Found bundle for host http2-push.io: 0x56193881ae40 [can multiplex]\n* Re-using existing connection! (#0) with host http2-push.io\n* Connected to http2-push.io (216.239.38.21) port 443 (#0)\n* Using Stream ID: 3 (easy handle 0x5619388fcd50)\n> GET /css/style.css HTTP/2\r\nHost: http2-push.io\r\nUser-Agent: Symfony HttpClient/Curl\r\nAccept-Encoding: deflate, gzip\r\n\r\n< HTTP/2 200 \r\n< date: Mon, 27 May 2019 18:23:23 GMT\r\n< expires: Mon, 27 May 2019 18:33:23 GMT\r\n< etag: "0CqJow"\r\n< x-cloud-trace-context: 543375291bd3b71b67fe389260ad1fbd;o=1\r\n< content-type: text/css\r\n< content-encoding: gzip\r\n< server: Google Frontend\r\n< content-length: 1805\r\n< cache-control: public, max-age=600\r\n< age: 0\r\n< \r\n* Connection #0 to host http2-push.io left intact\n

@fabpotfabpot changed the base branch frommaster to4.3May 28, 2019 08:25
@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit1214609 intosymfony:4.3May 28, 2019
fabpot added a commit that referenced this pull requestMay 28, 2019
…xtended logs about the HTTP transaction (nicolas-grekas)This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes#31641).Discussion----------[HttpClient] make $response->getInfo('debug') return extended logs about the HTTP transaction| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -This maps the `CURLOPT_VERBOSE` mode of curl to the `debug` info and emulates it when using `NativeHttpClient`.For example:```* Found bundle for host http2-push.io: 0x56193881ae40 [can multiplex]\n* Re-using existing connection! (#0) with host http2-push.io\n* Connected to http2-push.io (216.239.38.21) port 443 (#0)\n* Using Stream ID: 3 (easy handle 0x5619388fcd50)\n> GET /css/style.css HTTP/2\r\nHost: http2-push.io\r\nUser-Agent: Symfony HttpClient/Curl\r\nAccept-Encoding: deflate, gzip\r\n\r\n< HTTP/2 200 \r\n< date: Mon, 27 May 2019 18:23:23 GMT\r\n< expires: Mon, 27 May 2019 18:33:23 GMT\r\n< etag: "0CqJow"\r\n< x-cloud-trace-context: 543375291bd3b71b67fe389260ad1fbd;o=1\r\n< content-type: text/css\r\n< content-encoding: gzip\r\n< server: Google Frontend\r\n< content-length: 1805\r\n< cache-control: public, max-age=600\r\n< age: 0\r\n< \r\n* Connection #0 to host http2-push.io left intact\n```Commits-------1214609 [HttpClient] make $response->getInfo('debug') return extended logs about the HTTP transaction
@nicolas-grekasnicolas-grekas modified the milestones:next,4.3May 28, 2019
@nicolas-grekasnicolas-grekas deleted the hc-debug branchMay 28, 2019 08:29
@fabpotfabpot mentioned this pull requestMay 28, 2019
weaverryan added a commit to symfony/symfony-docs that referenced this pull requestMay 31, 2019
…ekas, weaverryan)This PR was merged into the 4.3 branch.Discussion----------[HttpClient] add note about getInfo(debug)As implemented insymfony/symfony#31641Commits-------0278830 fixing syntaxb05f9ca [HttpClient] add note about getInfo(debug)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp