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