]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ftp/Elements.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / ftp / Elements.h
1 /*
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
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
9 #ifndef SQUID_FTP_ELEMENTS_H
10 #define SQUID_FTP_ELEMENTS_H
11
12 #include "http/StatusCode.h"
13 #include "sbuf/forward.h"
14
15 class HttpReply;
16
17 namespace AnyP
18 {
19 class ProtocolVersion;
20 }
21
22 namespace Ftp
23 {
24
25 /// Protocol version to use in HttpMsg structures wrapping FTP messages.
26 AnyP::ProtocolVersion ProtocolVersion();
27
28 /// Create an internal HttpReply structure to house FTP control response info.
29 HttpReply *HttpReplyWrapper(const int ftpStatus, const char *ftpReason, const Http::StatusCode httpStatus, const int64_t clen);
30
31 /* FTP Commands used by Squid. ALLCAPS case. Safe for static initializaton. */
32 const SBuf &cmdAppe();
33 const SBuf &cmdAuth();
34 const SBuf &cmdCwd();
35 const SBuf &cmdDele();
36 const SBuf &cmdEprt();
37 const SBuf &cmdEpsv();
38 const SBuf &cmdList();
39 const SBuf &cmdMkd();
40 const SBuf &cmdMlsd();
41 const SBuf &cmdMlst();
42 const SBuf &cmdNlst();
43 const SBuf &cmdRetr();
44 const SBuf &cmdRmd();
45 const SBuf &cmdRnfr();
46 const SBuf &cmdRnto();
47 const SBuf &cmdSmnt();
48 const SBuf &cmdStat();
49 const SBuf &cmdStor();
50 const SBuf &cmdStou();
51 const SBuf &cmdUser();
52
53 } // namespace Ftp
54
55 #endif /* SQUID_FTP_ELEMENTS_H */
56