Home | History | Annotate | Download | only in samples

Lines Matching full:value

102   static Handle<Value> GetPath(Local<String> name, const AccessorInfo& info);
103 static Handle<Value> GetReferrer(Local<String> name,
105 static Handle<Value> GetHost(Local<String> name, const AccessorInfo& info);
106 static Handle<Value> GetUserAgent(Local<String> name,
110 static Handle<Value> MapGet(Local<String> name, const AccessorInfo& info);
111 static Handle<Value> MapSet(Local<String> name,
112 Local<Value> value,
134 static Handle<Value> LogCallback(const Arguments& args) {
137 Handle<Value> arg = args[0];
138 String::Utf8Value value(arg);
139 HttpRequestProcessor::Log(*value);
179 Handle<Value> process_val = context->Global()->Get(process_name);
214 Handle<Value> result = compiled_script->Run();
260 Handle<Value> argv[argc] = { request_obj };
261 Handle<Value> result = process_->Call(context_->Global(), argc, argv);
325 void* ptr = field->Value();
332 string ObjectToString(Local<Value> value) {
333 String::Utf8Value utf8_value(value);
338 Handle<Value> JsHttpRequestProcessor::MapGet(Local<String> name,
346 // Look up the value if it exists using the standard STL ideom.
350 if (iter == obj->end()) return Handle<Value>();
352 // Otherwise fetch the value and wrap it in a JavaScript string
353 const string& value = (*iter).second;
354 return String::New(value.c_str(), value.length());
358 Handle<Value> JsHttpRequestProcessor::MapSet(Local<String> name,
359 Local<Value> value_obj,
364 // Convert the key and value to std::strings.
366 string value = ObjectToString(value_obj);
369 (*obj)[key] = value;
371 // Return the value; any non-empty handle will work.
432 void* ptr = field->Value();
437 Handle<Value> JsHttpRequestProcessor::GetPath(Local<String> name,
450 Handle<Value> JsHttpRequestProcessor::GetReferrer(Local<String> name,
458 Handle<Value> JsHttpRequestProcessor::GetHost(Local<String> name,
466 Handle<Value> JsHttpRequestProcessor::GetUserAgent(Local<String> name,
541 string value = arg.substr(index+1);
542 options[key] = value;