/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
D | response.c | 51 add_response_entry (struct MHD_Response *response, in add_response_entry() argument 58 if ( (NULL == response) || in add_response_entry() 84 hdr->next = response->first_header; in add_response_entry() 85 response->first_header = hdr; in add_response_entry() 100 MHD_add_response_header (struct MHD_Response *response, in MHD_add_response_header() argument 103 return add_response_entry (response, in MHD_add_response_header() 120 MHD_add_response_footer (struct MHD_Response *response, in MHD_add_response_footer() argument 123 return add_response_entry (response, in MHD_add_response_footer() 140 MHD_del_response_header (struct MHD_Response *response, in MHD_del_response_header() argument 150 pos = response->first_header; in MHD_del_response_header() [all …]
|
D | connection.c | 247 return ( (NULL == connection->response) && in need_100_continue() 335 struct MHD_Response *response; in try_ready_normal_body() local 337 response = connection->response; in try_ready_normal_body() 338 if (NULL == response->crc) in try_ready_normal_body() 340 if (0 == response->total_size) in try_ready_normal_body() 342 if ( (response->data_start <= in try_ready_normal_body() 344 (response->data_size + response->data_start > in try_ready_normal_body() 348 if ( (MHD_INVALID_SOCKET != response->fd) && in try_ready_normal_body() 356 ret = response->crc (response->crc_cls, in try_ready_normal_body() 358 response->data, in try_ready_normal_body() [all …]
|
/third_party/libcoap/tests/ |
D | test_error_response.c | 34 coap_pdu_t *response; in t_error_response1() local 42 response = coap_new_error_response(pdu, COAP_RESPONSE_CODE(400), &opts); in t_error_response1() 44 CU_ASSERT_PTR_NOT_NULL(response); in t_error_response1() 46 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response1() 47 CU_ASSERT(response->type == COAP_MESSAGE_ACK); in t_error_response1() 48 CU_ASSERT(response->token_length == 0); in t_error_response1() 49 CU_ASSERT(response->code == 0x80); in t_error_response1() 50 CU_ASSERT(response->mid == 0x1234); in t_error_response1() 51 CU_ASSERT(coap_pdu_encode_header(response, COAP_PROTO_UDP) == 4); in t_error_response1() 52 CU_ASSERT(memcmp(response->token - 4, teststr, sizeof(teststr)) == 0); in t_error_response1() [all …]
|
/third_party/node/test/parallel/ |
D | test-http2-compat-serverresponse-headers.js | 14 server.once('request', common.mustCall(function(request, response) { argument 20 response.setHeader(real, expectedValue); 22 assert.strictEqual(response.hasHeader(real), true); 23 assert.strictEqual(response.hasHeader(fake), false); 24 assert.strictEqual(response.hasHeader(denormalised), true); 25 assert.strictEqual(response.getHeader(real), expectedValue); 26 assert.strictEqual(response.getHeader(denormalised), expectedValue); 27 assert.strictEqual(response.getHeader(fake), undefined); 29 response.removeHeader(fake); 30 assert.strictEqual(response.hasHeader(fake), false); [all …]
|
D | test-http2-compat-serverresponse-end.js | 26 const server = createServer(mustCall((request, response) => { 27 response.end('end', 'utf8', mustCall(() => { 28 response.end(mustCall()); 30 response.end(mustCall()); 34 response.on('finish', mustCall(() => { 35 response.end(mustCall()); 37 response.end(mustCall()); 65 const server = createServer(mustCall((request, response) => { 66 strictEqual(response, response.end()); 67 strictEqual(response, response.end()); [all …]
|
D | test-http2-compat-serverresponse-finished.js | 14 server.once('request', common.mustCall((request, response) => { 15 assert.ok(response.socket instanceof net.Socket); 16 assert.ok(response.connection instanceof net.Socket); 17 assert.strictEqual(response.socket, response.connection); 19 response.on('finish', common.mustCall(() => { 20 assert.strictEqual(response.socket, undefined); 21 assert.strictEqual(response.connection, undefined); 23 assert.ok(response.stream); 27 assert.strictEqual(response.finished, false); 28 assert.strictEqual(response.writableEnded, false); [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | gas_server.c | 55 static void gas_server_free_response(struct gas_server_response *response); 60 struct gas_server_response *response = eloop_ctx; in gas_server_response_timeout() local 64 response, MAC2STR(response->dst), response->dialog_token, in gas_server_response_timeout() 65 response->freq, response->frag_id, in gas_server_response_timeout() 66 (unsigned long) response->offset, in gas_server_response_timeout() 67 (unsigned long) (response->resp ? in gas_server_response_timeout() 68 wpabuf_len(response->resp) : 0)); in gas_server_response_timeout() 69 response->handler->status_cb(response->handler->ctx, in gas_server_response_timeout() 70 response->resp, 0); in gas_server_response_timeout() 71 response->resp = NULL; in gas_server_response_timeout() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | gas_server.c | 52 static void gas_server_free_response(struct gas_server_response *response); 57 struct gas_server_response *response = eloop_ctx; in gas_server_response_timeout() local 61 response, MAC2STR(response->dst), response->dialog_token, in gas_server_response_timeout() 62 response->freq, response->frag_id, in gas_server_response_timeout() 63 (unsigned long) response->offset, in gas_server_response_timeout() 64 (unsigned long) wpabuf_len(response->resp)); in gas_server_response_timeout() 65 response->handler->status_cb(response->handler->ctx, in gas_server_response_timeout() 66 response->resp, 0); in gas_server_response_timeout() 67 response->resp = NULL; in gas_server_response_timeout() 68 dl_list_del(&response->list); in gas_server_response_timeout() [all …]
|
/third_party/gptfdisk/ |
D | support.cc | 80 uint64_t response, num; in GetNumber() local 89 num = sscanf(line, "%" PRIu64, &response); in GetNumber() 91 if ((response < low) || (response > high)) in GetNumber() 94 response = def; in GetNumber() 96 } while ((response < low) || (response > high)); in GetNumber() 99 response = low; in GetNumber() 101 return (response); in GetNumber() 106 char response; in GetYN() local 115 response = toupper(line[0]); in GetYN() 116 } while ((response != 'Y') && (response != 'N')); in GetYN() [all …]
|
/third_party/protobuf/js/experimental/runtime/kernel/conformance/ |
D | conformance_testee.js | 17 const response = ConformanceResponse.createEmpty(); 20 response.setSkipped('Json is not supported as input format.'); 21 return response; 25 response.setSkipped('Text format is not supported as input format.'); 26 return response; 30 response.setRuntimeError('Request didn\'t have payload.'); 31 return response; 39 response.setSkipped('Json is not supported as output format.'); 40 return response; 44 response.setSkipped('Text format is not supported as output format.'); [all …]
|
/third_party/protobuf/conformance/ |
D | conformance_nodejs.js | 44 var response = new conformance.ConformanceResponse(); 48 response.setSkipped("JSON not supported."); 49 return response; 59 response.setParseError(err.toString()); 60 return response; 67 response.setParseError(err.toString()); 68 return response; 76 response.setSkipped("JSON not supported."); 77 return response; 80 response.setSkipped("Text format not supported."); [all …]
|
D | conformance_php.php | 31 $response = new \Conformance\ConformanceResponse(); 34 $response->setProtobufPayload(""); 35 return $response; 40 $response->setParseError($e->getMessage()); 41 return $response; 44 $response->setSkipped("PHP doesn't support proto2"); 45 return $response; 57 $response->setParseError($e->getMessage()); 58 return $response; 61 $response->setSkipped("PHP doesn't support text format yet"); [all …]
|
D | conformance_ruby.rb | 41 response = Conformance::ConformanceResponse.new 51 response.parse_error = err.message.encode('utf-8') 52 return response 55 response.skipped = "Ruby doesn't support proto2" 56 return response 66 response.parse_error = err.message.encode('utf-8') 67 return response 72 response.skipped = "Ruby doesn't support proto2" 73 return response 85 response.protobuf_payload = test_message.to_proto [all …]
|
D | conformance_python.py | 57 response = conformance_pb2.ConformanceResponse() 110 response.protobuf_payload = failure_set.SerializeToString() 111 return response 128 response.parse_error = str(e) 129 return response 139 response.parse_error = str(e) 140 return response 146 response.parse_error = str(e) 147 return response 156 response.protobuf_payload = test_message.SerializeToString() [all …]
|
/third_party/cef/tests/ceftests/ |
D | response_unittest.cc | 10 CefRefPtr<CefResponse> response(CefResponse::Create()); in TEST() local 11 EXPECT_TRUE(response.get() != nullptr); in TEST() 15 response->SetHeaderByName("HeaderA", "ValueA", false); in TEST() 16 response->SetHeaderByName("HeaderB", "ValueB", false); in TEST() 23 response->GetHeaderByName("headera").ToString().c_str()); in TEST() 25 response->GetHeaderByName("headerb").ToString().c_str()); in TEST() 26 EXPECT_STREQ("", response->GetHeaderByName("noexist").ToString().c_str()); in TEST() 28 response->GetHeaderMap(headers); in TEST() 32 response->SetHeaderByName("HeaderA", "ValueANew", true); in TEST() 40 response->GetHeaderByName("headerA").ToString().c_str()); in TEST() [all …]
|
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
D | applicationlayer.c | 36 struct SPDY_Response *response, in spdy_callback_response_done() argument 46 SPDY_destroy_response(response); in spdy_callback_response_done() 227 …response_queue->rrcb(response_queue->rrcb_cls, response_queue->response, request, status, streamop… in spdy_handler_response_queue_result() 398 struct SPDY_Response *response = NULL; in SPDY_build_response() local 410 if(NULL == (response = malloc(sizeof(struct SPDY_Response)))) in SPDY_build_response() 412 memset(response, 0, sizeof(struct SPDY_Response)); in SPDY_build_response() 443 if(0 >= (response->headers_size = SPDYF_name_value_to_stream(all_headers, in SPDY_build_response() 445 &(response->headers)))) in SPDY_build_response() 455 if(NULL == (response->data = malloc(size))) in SPDY_build_response() 457 free(response->headers); in SPDY_build_response() [all …]
|
/third_party/flutter/flutter/packages/flutter/test/foundation/ |
D | consolidate_response_test.dart | 20 MockHttpClientResponse response; 23 response = MockHttpClientResponse(); 24 when(response.compressionState).thenReturn(HttpClientResponseCompressionState.notCompressed); 25 when(response.listen( 47 when(response.contentLength) 50 await consolidateHttpClientResponseBytes(response); 56 when(response.contentLength).thenReturn(chunkOne.length); 58 await consolidateHttpClientResponseBytes(response); 64 when(response.contentLength).thenReturn(-1); 66 await consolidateHttpClientResponseBytes(response); [all …]
|
/third_party/flutter/skia/tools/skiaserve/ |
D | Response.cpp | 47 MHD_Response* response = MHD_create_response_from_buffer(strlen(data), in SendOK() local 50 int ret = MHD_queue_response(connection, 200, response); in SendOK() 51 MHD_destroy_response(response); in SendOK() 56 MHD_Response* response = MHD_create_response_from_buffer(strlen(msg), in SendError() local 59 int ret = MHD_queue_response(connection, 500, response); in SendError() 60 MHD_destroy_response(response); in SendError() 66 MHD_Response* response = MHD_create_response_from_buffer(data->size(), in SendData() local 69 MHD_add_response_header(response, "Content-Type", type); in SendData() 72 MHD_add_response_header(response, "Content-Disposition", dispositionString); in SendData() 75 int ret = MHD_queue_response(connection, MHD_HTTP_OK, response); in SendData() [all …]
|
/third_party/skia/tools/skiaserve/ |
D | Response.cpp | 47 MHD_Response* response = MHD_create_response_from_buffer(strlen(data), in SendOK() local 50 int ret = MHD_queue_response(connection, 200, response); in SendOK() 51 MHD_destroy_response(response); in SendOK() 56 MHD_Response* response = MHD_create_response_from_buffer(strlen(msg), in SendError() local 59 int ret = MHD_queue_response(connection, 500, response); in SendError() 60 MHD_destroy_response(response); in SendError() 66 MHD_Response* response = MHD_create_response_from_buffer(data->size(), in SendData() local 69 MHD_add_response_header(response, "Content-Type", type); in SendData() 72 MHD_add_response_header(response, "Content-Disposition", dispositionString); in SendData() 75 int ret = MHD_queue_response(connection, MHD_HTTP_OK, response); in SendData() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/ |
D | Server.cpp | 80 dap::InitializeResponse response; in Impl() local 81 response.supportsFunctionBreakpoints = true; in Impl() 82 response.supportsConfigurationDoneRequest = true; in Impl() 83 response.supportsEvaluateForHovers = true; in Impl() 85 return response; in Impl() 89 [&](const dap::ResponseOrError<dap::InitializeResponse> &response) { in Impl() argument 96 dap::SetExceptionBreakpointsResponse response; in Impl() local 97 return response; in Impl() 104 dap::SetFunctionBreakpointsResponse response; in Impl() local 114 response.breakpoints.emplace_back(std::move(resBP)); in Impl() [all …]
|
/third_party/typescript/src/harness/ |
D | client.ts | 95 let response!: T; 101 response = JSON.parse(responseBody); 104 if (response.type === "response") { 114 …Debug.assert(response.request_seq === request.seq, "Malformed response: response sequence number d… 117 if (!response.success) { 118 throw new Error("Error " + response.message); 121 …Debug.assert(expectEmptyBody || !!response.body, "Malformed response: Unexpected empty response bo… 122 …Debug.assert(!expectEmptyBody || !response.body, "Malformed response: Unexpected non-empty respons… 124 return response; 170 const response = this.processResponse<protocol.QuickInfoResponse>(request); constant [all …]
|
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
D | post_example.c | 245 struct MHD_Response *response) in add_session_cookie() argument 254 MHD_add_response_header (response, in add_session_cookie() 281 struct MHD_Response *response; in serve_simple_form() local 284 response = MHD_create_response_from_buffer (strlen (form), in serve_simple_form() 287 if (NULL == response) in serve_simple_form() 289 add_session_cookie (session, response); in serve_simple_form() 290 MHD_add_response_header (response, in serve_simple_form() 295 response); in serve_simple_form() 296 MHD_destroy_response (response); in serve_simple_form() 317 struct MHD_Response *response; in fill_v1_form() local [all …]
|
/third_party/node/deps/npm/node_modules/http-cache-semantics/ |
D | README.md | 7 Cacheability of an HTTP response depends on how it was requested, so both `request` and `response` … 10 const policy = new CachePolicy(request, response, options); 13 // throw the response away, it's not usable at all 19 letsPretendThisIsSomeCache.set(request.url, {policy, response}, policy.timeToLive()); 24 const {policy, response} = letsPretendThisIsSomeCache.get(newRequest.url); 28 // OK, the previous response can be used to respond to the `newRequest`. 30 response.headers = policy.responseHeaders(); 31 return response; 35 …TTP response to be [fresh](#yo-fresh) to satisfy a request. It may need to match request headers s… 41 Request and response must have a `headers` property with all header names in lower case. `url`, `st… [all …]
|
/third_party/node/deps/npm/node_modules/request/lib/ |
D | redirect.js | 45 Redirect.prototype.redirectTo = function (response) { argument 50 …if (response.statusCode >= 300 && response.statusCode < 400 && response.caseless.has('location')) { 51 var location = response.caseless.get('location') 69 } else if (response.statusCode === 401) { 70 var authHeader = request._auth.onResponse(response) 79 Redirect.prototype.onResponse = function (response) { argument 83 var redirectTo = self.redirectTo(response) 84 if (!redirectTo || !self.allowRedirect.call(request, response)) { 93 if (response.resume) { 94 response.resume() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/vkscserver/ |
D | tests.cpp | 105 StoreContentResponse response; in RunStoreContentTests() local 106 server.SendRequest(request, response); in RunStoreContentTests() 108 …Except("StoreContentResponse::status", response.status, true, "After requesting to store data on a… in RunStoreContentTests() 115 StoreContentResponse response; in RunStoreContentTests() local 116 server.SendRequest(request, response); in RunStoreContentTests() 118 …Except("StoreContentResponse::status", response.status, true, "After requesting to store data with… in RunStoreContentTests() 128 GetContentResponse response; in RunGetContentTests() local 129 server.SendRequest(request, response); in RunGetContentTests() 131 …Except("StoreContentResponse::status", response.status, true, "After requesting to get data from s… in RunGetContentTests() 132 Except("StoreContentResponse::data", response.data, {5,6,7,8,9}, "Received data must be correct"); in RunGetContentTests() [all …]
|