Home | History | Annotate | Download | only in samples

Lines Matching refs:request

40 // These interfaces represent an existing request processing interface.
46 * A simplified http request.
58 * The abstract superclass of http request processors.
69 // Process a single request.
76 * An http request processor that is scriptable using JavaScript.
103 // Callbacks that access the individual fields of request objects.
243 bool JsHttpRequestProcessor::Process(HttpRequest* request) {
251 // Wrap the C++ request object in a JavaScript wrapper
252 Handle<Object> request_obj = WrapRequest(request);
258 // and one argument, the request.
289 // Utility function that wraps a C++ http request object in a
393 * Utility function that wraps a C++ http request object in a
396 Handle<Object> JsHttpRequestProcessor::WrapRequest(HttpRequest* request) {
400 // Fetch the template for creating JavaScript http request wrappers.
408 // Create an empty http request wrapper.
413 Handle<External> request_ptr = External::New(request);
415 // Store the request pointer in the JavaScript wrapper.
427 * Utility function that extracts the C++ http request object from a
439 // Extract the C++ request object from the JavaScript wrapper.
440 HttpRequest* request = UnwrapRequest(info.Holder());
443 const string& path = request->Path();
452 HttpRequest* request = UnwrapRequest(info.Holder());
453 const string& path = request->Referrer();
460 HttpRequest* request = UnwrapRequest(info.Holder());
461 const string& path = request->Host();
468 HttpRequest* request = UnwrapRequest(info.Holder());
469 const string& path = request->UserAgent();
480 // Add accessors for each of the fields of the request.
500 * A simplified http request.