/*
- * DEBUG: section 16 Cache Manager API
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
*/
+/* DEBUG: section 16 Cache Manager API */
+
#include "squid.h"
#include "base/TextException.h"
#include "ipc/TypedMsgHdr.h"
#include "mgr/ActionParams.h"
+#include "sbuf/StringConvert.h"
Mgr::ActionParams::ActionParams(): httpMethod(Http::METHOD_NONE)
{
String method;
msg.getString(method);
- httpMethod = HttpRequestMethod(method.termedBuf(), NULL);
+ httpMethod.HttpRequestMethodXXX(method.termedBuf());
msg.getPod(httpFlags);
msg.getString(httpOrigin);
Mgr::ActionParams::pack(Ipc::TypedMsgHdr &msg) const
{
msg.putString(httpUri);
- String foo(httpMethod.image().toString());
+ auto foo = SBufToString(httpMethod.image());
msg.putString(foo);
msg.putPod(httpFlags);
msg.putString(httpOrigin);
msg.putString(password);
queryParams.pack(msg);
}
+