Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a76b1c4915
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (23 sloc) 0.941 kB
#ifndef _XSCRIPT_POLICY_H_
#define _XSCRIPT_POLICY_H_
#include <vector>
#include <string>
#include "xscript/component.h"
namespace xscript {
class Request;
class Policy: public virtual Component<Policy> {
public:
Policy();
virtual ~Policy();
virtual void getProxyHttpHeaders(const Request *req, std::vector<std::string> &headers) const;
virtual std::string getPathByScheme(const Request *request, const std::string &url) const;
virtual std::string getRootByScheme(const Request *request, const std::string &url) const;
virtual std::string getKey(const Request* request, const std::string& name) const;
virtual std::string getOutputEncoding(const Request* request) const;
virtual void useDefaultSanitizer() const;
protected:
virtual bool isSkippedProxyHeader(const std::string &header) const;
static const std::string UTF8_ENCODING;
};
} // namespace xscript
#endif // _XSCRIPT_POLICY_H_
Jump to Line
Something went wrong with that request. Please try again.