public Thumbnail thumbnail;
public HTTPSeek seek;
- public HTTPRequestHandler request_handler;
+ public HTTPRequestHandler handler;
public HTTPRequest (HTTPServer http_server,
Soup.Server server,
return;
}
- if (this.request_handler == null) {
- this.request_handler = new HTTPIdentityHandler (this.cancellable);
+ if (this.handler == null) {
+ this.handler = new HTTPIdentityHandler (this.cancellable);
}
yield this.find_item ();
}
// Add headers
- this.request_handler.add_response_headers (this);
+ this.handler.add_response_headers (this);
debug ("Following HTTP headers appended to response:");
this.msg.response_headers.foreach ((name, value) => {
debug ("%s : %s", name, value);
return;
}
- this.response = this.request_handler.render_body (this);
+ this.response = this.handler.render_body (this);
this.response.completed += on_response_completed;
yield this.response.run ();
} catch (Error error) {
debug ("Transcoding target: %s", target);
var transcoder = this.http_server.get_transcoder (target);
- this.request_handler = new HTTPTranscodeHandler (transcoder,
- this.cancellable);
+ this.handler = new HTTPTranscodeHandler (transcoder,
+ this.cancellable);
}
var index = this.query.lookup ("thumbnail");