]> git.saurik.com Git - apt.git/commit - methods/http.h
reorganize server-states resetting in http/https
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 11 Aug 2016 14:59:13 +0000 (16:59 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 16 Aug 2016 16:49:37 +0000 (18:49 +0200)
commitebdb6f1810a20ac240b5b2192dc2e6532ff149d2
tree5f3523913c4de3abc95165ac17c1d7c2ad50bce2
parent1bb40ea62efc5eafc93d3739c9082e8f7e1a0e53
reorganize server-states resetting in http/https

We keep various information bits about the server around, some only
effecting the currently handled file (like sizes) while others
should be persistent (like pipeline detections). http used to reset all
file-related manually, which is a bit silly if we already have a Reset()
method – which does reset all through –, so extending it with a
parameter for reuse and calling it from https too (as this was
previously resetting by just creating a new state struct – it uses no
value of the persistent state-keeping yet as it supports no pipelining).

Gbp-Dch: Ignore
methods/http.cc
methods/http.h
methods/https.cc
methods/server.cc
methods/server.h