summaryrefslogtreecommitdiffstats
path: root/src/plugins/hs_apps/http_cli.h
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2022-09-14 09:07:12 +0000
committerFlorin Coras <florin.coras@gmail.com>2022-11-10 18:35:31 +0000
commitee4172ef0a115b6d96cfb0d5cc6ef4fb211c01aa (patch)
tree67ba8e532843a387ac77e3db25611af78f28896e /src/plugins/hs_apps/http_cli.h
parentea6c878d5f5b1f68056bb577e37cd22d66ff2fe8 (diff)
http: support client connect
Type: feature Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I0738c0aefb41ab6c0ff717cfccd1df75ddb481fa
Diffstat (limited to 'src/plugins/hs_apps/http_cli.h')
-rw-r--r--src/plugins/hs_apps/http_cli.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/hs_apps/http_cli.h b/src/plugins/hs_apps/http_cli.h
new file mode 100644
index 00000000000..f774552d60f
--- /dev/null
+++ b/src/plugins/hs_apps/http_cli.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2022 Cisco and/or its affiliates.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+const char *html_header_template = "<html><head><title>%v</title></head>"
+ "<link rel=\"icon\" href=\"data:,\">"
+ "<body><pre>";
+
+const char *html_footer = "</pre></body></html>\r\n";
+
+/*
+ * fd.io coding-style-patch-verification: ON
+ *
+ * Local Variables:
+ * eval: (c-set-style "gnu")
+ * End:
+ */