MCPcopy Create free account
hub / github.com/apache/trafficserver / OperatorSetRedirect

Class OperatorSetRedirect

plugins/header_rewrite/operators.h:138–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136};
137
138class OperatorSetRedirect : public Operator
139{
140public:
141 OperatorSetRedirect() { Dbg(dbg_ctl, "Calling CTOR for OperatorSetRedirect"); }
142
143 // noncopyable
144 OperatorSetRedirect(const OperatorSetRedirect &) = delete;
145 void operator=(const OperatorSetRedirect &) = delete;
146
147 void initialize(Parser &p) override;
148
149 TSHttpStatus
150 get_status() const
151 {
152 return static_cast<TSHttpStatus>(_status.get_int_value());
153 }
154
155 const std::string &
156 get_location() const
157 {
158 return _location.get_value();
159 }
160
161protected:
162 void initialize_hooks() override;
163
164 bool exec(const Resources &res) const override;
165
166private:
167 Value _status;
168 Value _location;
169};
170
171class OperatorNoOp : public Operator
172{

Callers

nothing calls this directly

Calls 1

get_valueMethod · 0.45

Tested by

no test coverage detected