HomeSort by relevance Sort by last modified time
    Searched defs:Response (Results 1 - 25 of 32) sorted by null

1 2

  /external/chromium_org/chrome/test/webdriver/commands/
response.h 16 // A simple class that encapsulates the information describing the response to
20 class Response {
22 // Creates a new |Response| with a default status of |kSuccess| and a
24 Response();
25 ~Response();
33 // Sets the |value| of this response, assuming ownership of the object in the
37 // Configures this response to report the given error. Ownership of the error
41 // Sets a JSON field in this response. The |key| may be a "." delimitted
47 // Returns a pointer to the actual response dictionary.
50 // Returns this response as a JSON string
    [all...]
response.cc 5 #include "chrome/test/webdriver/commands/response.h"
27 Response::Response() {
32 Response::~Response() {}
34 ErrorCode Response::GetStatus() const {
41 void Response::SetStatus(ErrorCode status) {
45 const Value* Response::GetValue() const {
51 void Response::SetValue(Value* value) {
55 void Response::SetError(Error* error)
    [all...]
  /external/chromium_org/net/tools/quic/
quic_in_memory_cache.h 30 // Container for response header/body pairs.
31 class Response {
33 Response() {}
34 ~Response() {}
52 DISALLOW_COPY_AND_ASSIGN(Response);
56 // Retrieve a response from this cache for a given request.
57 // If no appropriate response exists, NULL is returned.
59 const Response* GetResponse(const BalsaHeaders& request_headers) const;
61 // Add a response to the cache.
69 typedef base::hash_map<std::string, Response*> ResponseMap
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/server2/
link_error_detector_test.py 10 from servlet import Response
54 return Response(
58 return Response(status=404)
handler.py 8 from servlet import Servlet, Request, Response
29 return Response.NotFound('"%s" servlet not found' % servlet_path)
render_servlet.py 12 from servlet import Servlet, Response
38 return Response.Ok('')
44 return Response.Redirect(redirect)
49 return Response.Redirect('/' + redirect,
60 # Therefore, the response should be a 404 Not Found.
92 return Response.NotFound(content, headers=headers)
101 return Response.Ok(content, headers=headers)
test_servlet.py 7 from servlet import Request, Response, Servlet
46 return Response.NotFound('Test %s not found. Available tests are: %s' % (
67 return Response.InternalError(content=content)
69 return Response.Ok(content="%s test passed." % self._request.path)
render_servlet_test.py 11 from servlet import Request, Response
22 Response.Redirect('/extensions/storage.html', permanent=False),
28 Response.Redirect('/extensions/storage.html', permanent=True),
34 response = RenderServlet(request, _RenderServletDelegate()).Get()
35 self.assertEqual(404, response.status)
40 response = RenderServlet(request, _RenderServletDelegate()).Get()
41 self.assertEqual(200, response.status)
42 content_type = response.headers.get('content-type')
46 response.content.ToString())
51 response = RenderServlet(request, _RenderServletDelegate()).Get(
    [all...]
patch_servlet.py 22 from servlet import Request, Response, Servlet
83 return Response.Redirect(
90 return Response.NotFound('Malformed URL. It should look like ' +
94 response = RenderServlet(
100 response.headers.pop('cache-control', None)
102 response = Response.NotFound(e.message, {'Content-Type': 'text/plain'})
104 redirect_url, permanent = response.GetRedirect()
106 response = Response.Redirect('/_patch/%s%s' % (issue, redirect_url)
    [all...]
servlet.py 25 '''Builds the response content.
48 class Response(object):
49 '''The response from Get().
62 '''Returns an OK (200) response.
64 return Response(content=content, headers=headers, status=200)
68 '''Returns a redirect (301 or 302) response.
71 return Response(headers={'Location': url}, status=status)
75 '''Returns a not found (404) response.
77 return Response(content=content, headers=headers, status=404)
81 '''Returns an internal error (500) response
    [all...]
cron_servlet.py 21 from servlet import Servlet, Request, Response
93 response = get_via_render_servlet(path)
94 if response.status != 200:
95 error = 'Got %s response' % response.status
164 return (Response.Ok('Success') if success else
165 Response.InternalError('Failure'))
  /external/chromium_org/chrome/browser/devtools/
devtools_protocol.cc 57 DevToolsProtocol::Response::~Response() {
60 DevToolsProtocol::Response::Response(int id, int error_code)
84 DevToolsProtocol::Response* DevToolsProtocol::ParseResponse(
101 return new Response(id, error_code);
devtools_protocol.h 52 class Response {
54 virtual ~Response();
62 Response(int id, int error_code);
66 DISALLOW_COPY_AND_ASSIGN(Response);
87 static Response* ParseResponse(const std::string& json);
  /external/chromium_org/webkit/browser/appcache/
appcache_executable_handler.h 24 // in 'Response' are empty and use_network is false, an error response is
26 struct Response {
33 typedef base::Callback<void(const Response&)> ResponseCallback;
  /frameworks/volley/src/com/android/volley/
Response.java 20 * Encapsulates a parsed response for delivery.
22 * @param <T> Parsed type of this response
24 public class Response<T> {
28 /** Called when a response is received. */
29 public void onResponse(T response);
41 /** Returns a successful response containing the parsed result. */
42 public static <T> Response<T> success(T result, Cache.Entry cacheEntry) {
43 return new Response<T>(result, cacheEntry);
47 * Returns a failed response containing the given error code and an optional
50 public static <T> Response<T> error(VolleyError error)
    [all...]
  /external/chromium_org/content/browser/devtools/
devtools_protocol.cc 64 scoped_refptr<DevToolsProtocol::Response>
66 return new DevToolsProtocol::Response(id_, result);
69 scoped_refptr<DevToolsProtocol::Response>
71 return new DevToolsProtocol::Response(id_, kErrorInternalError, message);
74 scoped_refptr<DevToolsProtocol::Response>
78 return new DevToolsProtocol::Response(id_, kErrorInvalidParams, message);
81 scoped_refptr<DevToolsProtocol::Response>
83 return new Response(id_, kErrorNoSuchMethod, "No such method");
86 scoped_refptr<DevToolsProtocol::Response>
88 scoped_refptr<DevToolsProtocol::Response> promise
105 base::DictionaryValue response; local
222 scoped_refptr<Response> response = local
269 scoped_refptr<Response> response = local
    [all...]
devtools_protocol.h 25 class Response;
54 // Creates success response. Takes ownership of |result|.
55 scoped_refptr<Response> SuccessResponse(base::DictionaryValue* result);
57 // Creates error response.
58 scoped_refptr<Response> InternalErrorResponse(const std::string& message);
60 // Creates error response.
61 scoped_refptr<Response> InvalidParamResponse(const std::string& param);
63 // Creates error response.
64 scoped_refptr<Response> NoSuchMethodErrorResponse();
66 // Creates async response promise
    [all...]
  /external/okhttp/src/main/java/com/squareup/okhttp/
Response.java 29 * An HTTP response. Instances of this class are not immutable: the response
36 public final class Response {
41 private final Response redirectedBy;
43 private Response(Builder builder) {
52 * The wire-level request that initiated this HTTP response. This is usually
57 * response compression.
58 * <li>It may be the request generated in response to an HTTP redirect.
105 * Returns the response for the HTTP redirect that triggered this response, o
    [all...]
  /external/smack/src/org/jivesoftware/smack/sasl/
SASLMechanism.java 117 byte[] response = sc.evaluateChallenge(new byte[0]);
118 authenticationText = StringUtils.encodeBase64(response, false);
131 * response to the server's challenge.
134 * @throws IOException if an exception sending the response occurs.
137 byte response[];
139 response = sc.evaluateChallenge(StringUtils.decodeBase64(challenge));
141 response = sc.evaluateChallenge(new byte[0]);
145 if (response == null) {
146 responseStanza = new Response();
149 responseStanza = new Response(StringUtils.encodeBase64(response, false));
    [all...]
  /external/chromium_org/chrome_frame/test/
test_server.h 11 // The server uses two basic concepts, a request and a response.
12 // The Response interface represents an item (e.g. a document) available from
14 // browser). There are several basic Response classes implemented in this file,
15 // all derived from the Response interface.
29 // All Response classes count how many times they have been accessed. Just
30 // call Response::accessed().
32 // To implement a custom response object (e.g. to match against a request
34 // server), just inherit from one of the response classes or directly from the
35 // Response interface and add your response object to the server's list o
    [all...]
  /external/chromium_org/dbus/
message.h 43 // sub classes such as MethodCall and Response instead.
199 // Response is a type of message used for receiving a response from a
201 class CHROME_DBUS_EXPORT Response : public Message {
203 // Returns a newly created Response from the given raw message of the
205 static scoped_ptr<Response> FromRawMessage(DBusMessage* raw_message);
207 // Returns a newly created Response from the given method call.
210 static scoped_ptr<Response> FromMethodCall(MethodCall* method_call);
212 // Returns a newly created Response with an empty payload.
214 static scoped_ptr<Response> CreateEmpty()
    [all...]
  /external/nist-sip/java/javax/sip/message/
Response.java 5 public interface Response extends Message {
  /system/core/include/utils/
Looper.h 337 struct Response {
374 Vector<Response> mResponses;
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/
CookieParser.js 99 this._addCookie(kv, WebInspector.Cookie.Type.Response);
368 Response: 1
  /external/chromium/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/
__init__.py 82 __all__ = ['Http', 'Response', 'ProxyInfo', 'HttpLib2Error',
114 def __init__(self, desc, response, content):
115 self.response = response
153 def _get_end2end_headers(response):
155 hopbyhop.extend([x.strip() for x in response.get('connection', '').split(',')])
156 return [header for header in response.keys() if header not in hopbyhop]
343 def _decompressContent(response, new_content):
346 encoding = response.get('content-encoding', None)
352 response['content-length'] = str(len(content)
436 def response(self, response, content): member in class:Authentication
499 def response(self, response, content): member in class:DigestAuthentication
570 def response(self, response, content): member in class:HmacDigestAuthentication
    [all...]

Completed in 973 milliseconds

1 2