]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionParams.cc
4 * DEBUG: section 16 Cache Manager API
9 #include "base/TextException.h"
10 #include "ipc/TypedMsgHdr.h"
11 #include "mgr/ActionParams.h"
13 Mgr::ActionParams::ActionParams(): httpMethod(METHOD_NONE
)
17 Mgr::ActionParams::ActionParams(const Ipc::TypedMsgHdr
&msg
)
19 msg
.getString(httpUri
);
21 const int m
= msg
.getInt();
22 Must(METHOD_NONE
<= m
&& m
< METHOD_ENUM_END
);
23 httpMethod
= static_cast<_method_t
>(m
);
25 msg
.getPod(httpFlags
);
27 msg
.getString(actionName
);
28 msg
.getString(userName
);
29 msg
.getString(password
);
30 queryParams
.unpack(msg
);
34 Mgr::ActionParams::pack(Ipc::TypedMsgHdr
&msg
) const
36 msg
.putString(httpUri
);
37 msg
.putInt(httpMethod
);
38 msg
.putPod(httpFlags
);
40 msg
.putString(actionName
);
41 msg
.putString(userName
);
42 msg
.putString(password
);
43 queryParams
.pack(msg
);