]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
1f7b830e | 2 | * Copyright (C) 1996-2025 The Squid Software Foundation and contributors |
bbc27441 AJ |
3 | * |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
ff9d9458 FC |
9 | #ifndef SQUID_SRC_CLIENTS_FORWARD_H |
10 | #define SQUID_SRC_CLIENTS_FORWARD_H | |
92ae4c86 | 11 | |
92e8f3ad FC |
12 | #include "sbuf/forward.h" |
13 | ||
92ae4c86 AR |
14 | class FwdState; |
15 | class HttpRequest; | |
16 | ||
f5e17947 CT |
17 | namespace Http |
18 | { | |
19 | class Tunneler; | |
20 | class TunnelerAnswer; | |
21 | } | |
22 | ||
27c841f6 AR |
23 | namespace Ftp |
24 | { | |
5517260a AR |
25 | |
26 | /// A new FTP Gateway job | |
2b6b1bcb | 27 | void StartGateway(FwdState *const fwdState); |
5517260a AR |
28 | |
29 | /// A new FTP Relay job | |
2b6b1bcb | 30 | void StartRelay(FwdState *const fwdState); |
5517260a | 31 | |
3cc0f4e7 AR |
32 | /** Construct an URI with leading / in PATH portion for use by CWD command |
33 | * possibly others. FTP encodes absolute paths as beginning with '/' | |
34 | * after the initial URI path delimiter, which happens to be / itself. | |
35 | * This makes FTP absolute URI appear as: ftp:host:port//root/path | |
36 | * To encompass older software which compacts multiple // to / in transit | |
37 | * We use standard URI-encoding on the second / making it | |
38 | * ftp:host:port/%2froot/path AKA 'the FTP %2f hack'. | |
39 | * | |
9837567d | 40 | * TODO: Should be an AnyP::Uri member |
92ae4c86 | 41 | */ |
851feda6 | 42 | const SBuf &UrlWith2f(HttpRequest *); |
92ae4c86 | 43 | |
5517260a | 44 | } // namespace Ftp |
92ae4c86 | 45 | |
ff9d9458 | 46 | #endif /* SQUID_SRC_CLIENTS_FORWARD_H */ |
f53969cc | 47 |