]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/seastar/include/seastar/http/common.hh
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / seastar / include / seastar / http / common.hh
index 09dc0d8ebe9811d63ca0b02758417bcbe46382bc..5953776055c9099cb25c0d1147055a8d91fee00d 100644 (file)
 
 #include <unordered_map>
 #include <seastar/core/sstring.hh>
+#include <seastar/core/iostream.hh>
 
 namespace seastar {
 
+namespace http {
+namespace internal {
+output_stream<char> make_http_chunked_output_stream(output_stream<char>& out);
+// The len parameter defines the maximum number of bytes to be written. After the
+// stream is closed, the len is updated with the actual number of bytes written.
+output_stream<char> make_http_content_length_output_stream(output_stream<char>& out, size_t& len);
+} // internal namespace
+} // http namespace
+
 namespace httpd {
 
 
@@ -69,6 +79,13 @@ enum operation_type {
  */
 operation_type str2type(const sstring& type);
 
+/**
+ * Translate the operation type to command string
+ * @param type the string GET or POST
+ * @return the command string "GET" or "POST"
+ */
+sstring type2str(operation_type type);
+
 }
 
 }