Lines Matching defs:req
105 struct evhttp_request* req = EVRPC_REQUEST_HTTP(rpc);
107 req->input_headers, "X-Hook");
159 rpc_postrequest_failure(struct evhttp_request *req, void *arg)
161 if (req->response_code != HTTP_SERVUNAVAIL) {
182 struct evhttp_request *req = NULL;
199 req = evhttp_request_new(rpc_postrequest_failure, NULL);
200 if (req == NULL) {
206 evhttp_add_header(req->output_headers, "Host", "somehost");
207 evbuffer_add_printf(req->output_buffer, "Some Nonsense");
209 if (evhttp_make_request(evcon, req,
235 rpc_postrequest_done(struct evhttp_request *req, void *arg)
239 if (req->response_code != HTTP_OK) {
247 if ((kill_unmarshal(kill_reply, req->input_buffer)) == -1) {
265 struct evhttp_request *req = NULL;
283 req = evhttp_request_new(rpc_postrequest_done, NULL);
284 if (req == NULL) {
290 evhttp_add_header(req->output_headers, "Host", "somehost");
296 msg_marshal(req->output_buffer, msg);
299 if (evhttp_make_request(evcon, req,
349 struct evhttp_request *req = status->http_req;
351 req->input_headers, "X-Pool-Hook");
412 rpc_hook_add_header(struct evhttp_request *req,
417 evhttp_add_header(req->input_headers, "X-Hook", hook_type);
419 evhttp_add_header(req->output_headers, "X-Hook", hook_type);
424 rpc_hook_remove_header(struct evhttp_request *req,
427 const char *header = evhttp_find_header(req->input_headers, "X-Hook");
430 evhttp_remove_header(req->input_headers, "X-Hook");
431 evhttp_add_header(req->input_headers, "X-Pool-Hook", "ran");