]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionParams.cc
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 /* DEBUG: section 16 Cache Manager API */
12 #include "base/TextException.h"
13 #include "ipc/TypedMsgHdr.h"
14 #include "mgr/ActionParams.h"
16 Mgr::ActionParams::ActionParams(): httpMethod(Http::METHOD_NONE
)
20 Mgr::ActionParams::ActionParams(const Ipc::TypedMsgHdr
&msg
)
22 msg
.getString(httpUri
);
25 msg
.getString(method
);
26 httpMethod
.HttpRequestMethodXXX(method
.termedBuf());
28 msg
.getPod(httpFlags
);
29 msg
.getString(httpOrigin
);
31 msg
.getString(actionName
);
32 msg
.getString(userName
);
33 msg
.getString(password
);
34 queryParams
.unpack(msg
);
38 Mgr::ActionParams::pack(Ipc::TypedMsgHdr
&msg
) const
40 msg
.putString(httpUri
);
41 String
foo(httpMethod
.image().toString());
43 msg
.putPod(httpFlags
);
44 msg
.putString(httpOrigin
);
46 msg
.putString(actionName
);
47 msg
.putString(userName
);
48 msg
.putString(password
);
49 queryParams
.pack(msg
);