Home
last modified time | relevance | path

Searched refs:request_type (Results 1 – 25 of 56) sorted by relevance

123

/external/libbrillo/brillo/http/
Dhttp_utils_unittest.cc45 kEchoUrl, request_type::kPost, base::Bind(EchoDataHandler)); in TEST()
50 http::SendRequestAndBlock(request_type::kPost, in TEST()
67 kEchoUrl, request_type::kPost, base::Bind(EchoDataHandler)); in TEST()
82 http::SendRequest(request_type::kPost, in TEST()
102 http::SendRequestAndBlock(request_type::kPost, in TEST()
112 EXPECT_EQ(request_type::kPost, response->ExtractDataAsString()); in TEST()
119 auto response = http::SendRequestAndBlock(request_type::kGet, in TEST()
129 EXPECT_EQ(request_type::kGet, response->ExtractDataAsString()); in TEST()
136 auto response = http::SendRequestAndBlock(request_type::kPut, in TEST()
146 EXPECT_EQ(request_type::kPut, response->ExtractDataAsString()); in TEST()
[all …]
Dhttp_request_unittest.cc69 Request request{"http://www.foo.bar", request_type::kPost, transport_}; in TEST_F()
75 EXPECT_EQ(request_type::kPost, request.GetRequestMethod()); in TEST_F()
77 Request request2{"http://www.foo.bar/baz", request_type::kGet, transport_}; in TEST_F()
79 EXPECT_EQ(request_type::kGet, request2.GetRequestMethod()); in TEST_F()
83 Request request{"http://www.foo.bar", request_type::kPost, transport_}; in TEST_F()
89 Request request{"http://www.foo.bar", request_type::kPost, transport_}; in TEST_F()
95 Request request{"http://www.foo.bar", request_type::kPost, transport_}; in TEST_F()
101 Request request{"http://www.foo.bar", request_type::kPost, transport_}; in TEST_F()
107 Request request{"http://www.foo.bar", request_type::kPost, transport_}; in TEST_F()
124 request_type::kPost, in TEST_F()
[all …]
Dhttp_request.cc20 const char request_type::kOptions[] = "OPTIONS";
21 const char request_type::kGet[] = "GET";
22 const char request_type::kHead[] = "HEAD";
23 const char request_type::kPost[] = "POST";
24 const char request_type::kPut[] = "PUT";
25 const char request_type::kPatch[] = "PATCH";
26 const char request_type::kDelete[] = "DELETE";
27 const char request_type::kTrace[] = "TRACE";
28 const char request_type::kConnect[] = "CONNECT";
29 const char request_type::kCopy[] = "COPY";
[all …]
Dhttp_utils.cc29 request_type::kGet, url, headers, transport, error); in GetAndBlock()
37 return SendRequestWithNoData(request_type::kGet, in Get()
49 request_type::kHead, url, {}, transport, error); in HeadAndBlock()
56 return SendRequestWithNoData(request_type::kHead, in Head()
190 return SendRequestAndBlock(request_type::kPost, in PostBinaryAndBlock()
207 return SendRequest(request_type::kPost, in PostBinary()
225 return SendRequest(request_type::kPost, in PostBinary()
258 Request request(url, request_type::kPost, transport); in PostFormDataAndBlock()
288 Request request(url, request_type::kPost, transport); in PostFormData()
348 return SendRequestAndBlock(request_type::kPatch, in PatchJsonAndBlock()
[all …]
Dhttp_transport_curl_unittest.cc70 request_type::kGet, in TEST_F()
88 "http://foo.bar/head", request_type::kHead, {}, "", "", nullptr); in TEST_F()
102 "http://foo.bar/put", request_type::kPut, {}, "", "", nullptr); in TEST_F()
118 "http://www.foo.bar/post", request_type::kPost, {}, "", "", nullptr); in TEST_F()
135 EasySetOptStr(handle_, CURLOPT_CUSTOMREQUEST, request_type::kPatch)) in TEST_F()
138 "http://www.foo.bar/patch", request_type::kPatch, {}, "", "", nullptr); in TEST_F()
156 "http://foo.bar/get", request_type::kGet, {}, "", "", &error); in TEST_F()
203 "http://foo.bar/get", request_type::kGet, {}, "", "", nullptr); in TEST_F()
297 "http://foo.bar/get", request_type::kGet, {}, "", "", nullptr); in TEST_F()
Dhttp_connection_curl.cc97 if (method_ != request_type::kGet) { in PrepareRequest()
105 if (method_ == request_type::kPut) { in PrepareRequest()
141 if (method_ != request_type::kHead) { in PrepareRequest()
Dhttp_transport_curl.cc170 if (method == request_type::kGet) { in CreateConnection()
172 } else if (method == request_type::kHead) { in CreateConnection()
174 } else if (method == request_type::kPut) { in CreateConnection()
183 if (code == CURLE_OK && method != request_type::kPost) { in CreateConnection()
Dhttp_connection_fake.cc104 if (request_.GetMethod() != request_type::kHead) { in ExtractDataStream()
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dremote.py296 request_type, argument
309 self.__request_type = request_type
318 def request_type(self): member in _RemoteMethodInfo
336 def method(request_type=message_types.VoidMessage, argument
351 if (not isinstance(request_type, six.string_types) and
352 (not isinstance(request_type, type) or
353 not issubclass(request_type, messages.Message) or
354 request_type is messages.Message)):
357 request_type)
406 if not isinstance(request, remote_method_info.request_type):
[all …]
Ddescriptor.py257 request_type = messages.StringField(2) variable in MethodDescriptor
432 descriptor.request_type = method_info.request_type.definition_name()
Dremote_test.py122 BasicService.remote_method.remote.request_type)
137 OtherService.remote_method.remote.request_type)
213 for request_type in (None, 1020, messages.Message, str):
218 @remote.method(request_type, SimpleResponse)
429 self.assertEquals(Request, SubClass.remote_method.remote.request_type)
Dregistry.py209 for message_type in (method.remote.request_type,
Dgenerate_python.py156 out << "@remote.method('%s', '%s')" % (method.request_type,
/external/kernel-headers/original/uapi/linux/
Ddm-log-userspace.h382 #define DM_ULOG_REQUEST_TYPE(request_type) \ argument
383 (DM_ULOG_REQUEST_MASK & (request_type))
424 uint32_t request_type; /* DM_ULOG_* defined above */ member
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dutil.py178 def MapParamNames(params, request_type): argument
180 return [encoding.GetCustomJsonFieldMapping(request_type, json_name=p) or p
184 def MapRequestParams(params, request_type): argument
206 request_type, python_name=param_name)
Dbase_api.py521 request_type = type(request)
525 getattr(request_type, param)))
589 request_type = _LoadClass(
593 body_type = request_type
596 body_field = request_type.field_by_name(
614 request_type = _LoadClass(
616 util.Typecheck(request, request_type)
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/gen/
Dcommand_registry.py94 request_type = messages.StringField(6) variable in CommandInfo
129 request_type = self.__message_registry.LookupDescriptor(request)
133 field_map = dict((f.name, f) for f in request_type.fields)
142 conversion=self.__GetConversion(extended_field, request_type),
146 for extended_field in sorted(request_type.fields,
156 extended_field, request_type, fv='fv'))
191 request_type=request_type.full_name,
540 'request = messages.%s(', command_info.request_type)
Dservice_registry.py291 def __NeedRequestType(self, method_description, request_type): argument
293 if not request_type:
298 message = self.__message_registry.LookupDescriptorOrDie(request_type)
427 request_type = None
429 request_type = self.__GetRequestType(body_type)
430 if self.__NeedRequestType(method_description, request_type):
436 request = request_type
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/
Dservice_handlers.py207 def build_request(self, handler, request_type): argument
227 return self.__protocol.decode_message(request_type, handler.request.body)
593 request = mapper.build_request(self, method_info.request_type)
670 def build_request(self, handler, request_type): argument
690 request = request_type()
/external/wpa_supplicant_8/src/wps/
Dwps.c114 } else if (attr.request_type == NULL) { in wps_init()
120 *attr.request_type); in wps_init()
121 data->request_type = *attr.request_type; in wps_init()
Dwps_validate.c59 static int wps_validate_request_type(const u8 *request_type, int mandatory) in wps_validate_request_type() argument
61 if (request_type == NULL) { in wps_validate_request_type()
69 if (*request_type > 0x03) { in wps_validate_request_type()
71 "attribute value 0x%x", *request_type); in wps_validate_request_type()
1198 wps_validate_request_type(attr.request_type, 1) || in wps_validate_probe_req()
1245 wps_validate_request_type(attr.request_type, 1) || in wps_validate_assoc_req()
Dwps_attr_parse.h51 const u8 *request_type; /* 1 octet */ member
/external/webrtc/webrtc/libjingle/xmpp/
Drostermoduleimpl.cc834 XmppSubscriptionRequestType request_type; in HandleStanza() local
835 if (StringToSubscriptionRequestType(type, &request_type)) in HandleStanza()
836 InternalSubscriptionRequest(jid, stanza, request_type); in HandleStanza()
928 request_type) { in InternalSubscriptionRequest() argument
930 roster_handler_->SubscriptionRequest(this, jid, request_type, stanza); in InternalSubscriptionRequest()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/mturk/
Dconnection.py142 destination, request_type, argument
179 return self._process_request(request_type, params)
832 def _process_request(self, request_type, params, marker_elems=None): argument
836 params['Operation'] = request_type
/external/netperf/src/
Dnetperf.c144 netperf_request.content.request_type = PASSPHRASE; in main()

123