swift/test
Alistair Coles 8061dfb1c3 proxy-server: de-duplicate _get_next_response_part method
Both GetOrHeadHandler (used for replicated policy GETs) and
ECFragGetter (used for EC policy GETs) have _get_next_response_part
methods that are very similar. This patch replaces them with a single
method in the common GetterBase superclass.

Both classes are modified to use *only* the Request instance passed to
their constructors. Previously their entry methods
(GetOrHeadHandler.get_working_response and
ECFragGetter.response_parts_iter) accepted a Request instance as an
arg and the class then variably referred to that or the Request
instance passed to the constructor. Both instances must be the same
and it is therefore safer to only allow the Request to be passed to
the constructor.

The 'newest' keyword arg is dropped from the GetOrHeadHandler
constructor because it is never used.

This refactoring patch makes no intentional behavioral changes, apart
from the text of some error log messages which have been changed to
differentiate replicated object GETs from EC fragment GETs.

Change-Id: I148e158ab046929d188289796abfbbce97dc8d90
2024-02-26 09:50:22 +00:00
..
cors s3api: Allow CORS preflights for pre-signed URLs 2021-07-14 10:52:12 -07:00
functional lint: Consistently use assertIsInstance 2024-02-07 15:48:39 -08:00
probe Merge "sharding: don't replace own_shard_range without an epoch" 2024-02-08 01:04:58 +00:00
s3api s3api: Add basic GET object-lock support 2023-10-05 16:38:35 +11:00
unit proxy-server: de-duplicate _get_next_response_part method 2024-02-26 09:50:22 +00:00
__init__.py Clean up some cruft 2023-01-19 12:56:08 -08:00
debug_logger.py Merge "proxy: Get rid of MetricsPrefixLoggerAdapter" 2023-09-11 05:10:00 +00:00
sample.conf fix s3api functional tests 2020-05-15 22:38:04 -07:00