]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionParams.cc
2 * DEBUG: section 16 Cache Manager API
7 #include "base/TextException.h"
8 #include "ipc/TypedMsgHdr.h"
9 #include "mgr/ActionParams.h"
11 Mgr::ActionParams::ActionParams(): httpMethod(Http::METHOD_NONE
)
15 Mgr::ActionParams::ActionParams(const Ipc::TypedMsgHdr
&msg
)
17 msg
.getString(httpUri
);
20 msg
.getString(method
);
21 httpMethod
= HttpRequestMethod(method
.termedBuf());
23 msg
.getPod(httpFlags
);
24 msg
.getString(httpOrigin
);
26 msg
.getString(actionName
);
27 msg
.getString(userName
);
28 msg
.getString(password
);
29 queryParams
.unpack(msg
);
33 Mgr::ActionParams::pack(Ipc::TypedMsgHdr
&msg
) const
35 msg
.putString(httpUri
);
36 String
foo(httpMethod
.image().toString());
38 msg
.putPod(httpFlags
);
39 msg
.putString(httpOrigin
);
41 msg
.putString(actionName
);
42 msg
.putString(userName
);
43 msg
.putString(password
);
44 queryParams
.pack(msg
);