#include <map>
#include <string>
#include <include/types.h>
+#include "include/encoding.h" // for WRITE_CLASS_ENCODER()
#include "include/str_list.h"
#define RGW_CORS_GET 0x1
#define CORS_MAX_AGE_INVALID ((uint32_t)-1)
+namespace ceph { class Formatter; }
+
class RGWCORSRule
{
protected:
void format_exp_headers(std::string& s);
void erase_origin_if_present(std::string& origin, bool *rule_empty);
void dump_origins();
- void dump(Formatter *f) const;
+ void dump(ceph::Formatter *f) const;
bool is_header_allowed(const char *hdr, size_t len);
bool matches_method(const char *req_meth);
bool matches_preflight_headers(const char *req_hdrs);
decode(rules, bl);
DECODE_FINISH(bl);
}
- void dump(Formatter *f) const;
+ void dump(ceph::Formatter *f) const;
std::list<RGWCORSRule>& get_rules() {
return rules;
}