| 136 | }; |
| 137 | |
| 138 | class OperatorSetRedirect : public Operator |
| 139 | { |
| 140 | public: |
| 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 | |
| 161 | protected: |
| 162 | void initialize_hooks() override; |
| 163 | |
| 164 | bool exec(const Resources &res) const override; |
| 165 | |
| 166 | private: |
| 167 | Value _status; |
| 168 | Value _location; |
| 169 | }; |
| 170 | |
| 171 | class OperatorNoOp : public Operator |
| 172 | { |