Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5500)

Issue 294640043: Allow httpproxy to return 304 instead of 200 on conditional requests.

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 10 months ago by gabadie
Modified:
7 years, 10 months ago
Base URL:
https://github.com/chromium/web-page-replay.git@master
Visibility:
Public.

Description

Allow httpproxy to return 304 instead of 200 on conditional requests. BUG=#76

Patch Set 1 #

Total comments: 6

Patch Set 2 : Adds support for If-None-Match and unittests #

Patch Set 3 : Remove --allow_generate_304 #

Total comments: 2

Patch Set 4 : Addresses Ned's nit #

Total comments: 2

Patch Set 5 : Addresses Egor's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -7 lines) Patch
M httpproxy.py View 1 3 chunks +10 lines, -1 line 0 comments Download
M httpproxy_test.py View 1 2 3 4 4 chunks +60 lines, -6 lines 0 comments Download
M replay.py View 1 2 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17
gabadie
Hey Ned, This CL allow to generate 304 response on conditional requests. PTAL.
7 years, 10 months ago (2016-05-27 15:58:11 UTC) #1
nednguyen
lg2me oveall but can you add test coverage? https://codereview.appspot.com/294640043/diff/1/replay.py File replay.py (right): https://codereview.appspot.com/294640043/diff/1/replay.py#newcode545 replay.py:545: '304 ...
7 years, 10 months ago (2016-05-29 21:42:45 UTC) #2
pasko
https://codereview.appspot.com/294640043/diff/1/httpproxy.py File httpproxy.py (right): https://codereview.appspot.com/294640043/diff/1/httpproxy.py#newcode249 httpproxy.py:249: response = httparchive.create_response( as discussed offline, this may not ...
7 years, 10 months ago (2016-05-30 11:32:25 UTC) #3
nednguyen
7 years, 10 months ago (2016-05-30 14:53:26 UTC) #4
nednguyen
+ Kouhei who is the owner of page_cycler suites. +Patrick: owner of WPT. Thoughts?
7 years, 10 months ago (2016-05-30 14:54:14 UTC) #5
kouhei
On 2016/05/30 11:32:25, pasko wrote: > https://codereview.appspot.com/294640043/diff/1/httpproxy.py > File httpproxy.py (right): > > https://codereview.appspot.com/294640043/diff/1/httpproxy.py#newcode249 > ...
7 years, 10 months ago (2016-05-31 00:45:20 UTC) #6
gabadie
Thanks! Uploaded a new revision adding unittest. Ned: PTAL. https://codereview.appspot.com/294640043/diff/1/httpproxy.py File httpproxy.py (right): https://codereview.appspot.com/294640043/diff/1/httpproxy.py#newcode249 httpproxy.py:249: ...
7 years, 10 months ago (2016-05-31 11:51:32 UTC) #7
pmeenan1
On 2016/05/31 11:51:32, gabadie wrote: > Thanks! Uploaded a new revision adding unittest. > > ...
7 years, 10 months ago (2016-05-31 14:08:47 UTC) #8
nednguyen
https://codereview.appspot.com/294640043/diff/1/replay.py File replay.py (right): https://codereview.appspot.com/294640043/diff/1/replay.py#newcode545 replay.py:545: '304 response.') On 2016/05/31 11:51:32, gabadie wrote: > On ...
7 years, 10 months ago (2016-05-31 17:19:42 UTC) #9
pasko
On 2016/05/31 17:19:42, nednguyen wrote: > https://codereview.appspot.com/294640043/diff/1/replay.py > File replay.py (right): > > https://codereview.appspot.com/294640043/diff/1/replay.py#newcode545 > ...
7 years, 10 months ago (2016-05-31 17:35:18 UTC) #10
nednguyen
On 2016/05/31 17:35:18, pasko wrote: > On 2016/05/31 17:19:42, nednguyen wrote: > > https://codereview.appspot.com/294640043/diff/1/replay.py > ...
7 years, 10 months ago (2016-05-31 17:38:21 UTC) #11
gabadie
On 2016/05/31 17:19:42, nednguyen wrote: > https://codereview.appspot.com/294640043/diff/1/replay.py > File replay.py (right): > > https://codereview.appspot.com/294640043/diff/1/replay.py#newcode545 > ...
7 years, 10 months ago (2016-06-01 11:29:19 UTC) #12
nednguyen
lgtm Let me know when you think this is ready to land & I will ...
7 years, 10 months ago (2016-06-01 17:57:02 UTC) #13
gabadie
Thanks Ned. The latest revision is the one. https://codereview.appspot.com/294640043/diff/40001/httpproxy_test.py File httpproxy_test.py (right): https://codereview.appspot.com/294640043/diff/40001/httpproxy_test.py#newcode50 httpproxy_test.py:50: del ...
7 years, 10 months ago (2016-06-02 07:26:32 UTC) #14
pasko
lgtm with an extra assert in tests https://codereview.appspot.com/294640043/diff/60001/httpproxy_test.py File httpproxy_test.py (right): https://codereview.appspot.com/294640043/diff/60001/httpproxy_test.py#newcode235 httpproxy_test.py:235: self.assertEqual(304, response.status) ...
7 years, 10 months ago (2016-06-02 08:36:16 UTC) #15
gabadie
Uploaded a new revision addressing Pasko's whish. Ned: you can go ahead. :) Thanks! https://codereview.appspot.com/294640043/diff/60001/httpproxy_test.py ...
7 years, 10 months ago (2016-06-02 13:04:59 UTC) #16
nednguyen
7 years, 10 months ago (2016-06-02 15:50:27 UTC) #17
On 2016/06/02 13:04:59, gabadie wrote:
> Uploaded a new revision addressing Pasko's whish.
> 
> Ned: you can go ahead. :)
> 
> Thanks!
> 
> https://codereview.appspot.com/294640043/diff/60001/httpproxy_test.py
> File httpproxy_test.py (right):
> 
>
https://codereview.appspot.com/294640043/diff/60001/httpproxy_test.py#newcode235
> httpproxy_test.py:235: self.assertEqual(304, response.status)
> On 2016/06/02 08:36:16, pasko wrote:
> > we should also assert on *not* getting the body with the 304
> 
> Done.

Landed in
https://github.com/chromium/web-page-replay/commit/aaee1e086c35d02cb9c70f4f1f...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b