/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
H A D | response.c | 21 * @file response.c 22 * @brief Methods for managing response objects 28 #include "response.h" 42 * Add a header or footer line to the response. 44 * @param response response to add a header to 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 in add_response_entry() 100 MHD_add_response_header(struct MHD_Response *response, const char *header, const char *content) MHD_add_response_header() argument 120 MHD_add_response_footer(struct MHD_Response *response, const char *footer, const char *content) MHD_add_response_footer() argument 140 MHD_del_response_header(struct MHD_Response *response, const char *header, const char *content) MHD_del_response_header() argument 183 MHD_get_response_headers(struct MHD_Response *response, MHD_KeyValueIterator iterator, void *iterator_cls) MHD_get_response_headers() argument 210 MHD_get_response_header(struct MHD_Response *response, const char *key) MHD_get_response_header() argument 247 struct MHD_Response *response; MHD_create_response_from_callback() local 280 MHD_set_response_options(struct MHD_Response *response, enum MHD_ResponseFlags flags, ...) MHD_set_response_options() argument 318 struct MHD_Response *response = cls; file_reader() local 340 struct MHD_Response *response = cls; free_callback() local 368 struct MHD_Response *response; MHD_create_response_from_fd_at_offset() local 419 struct MHD_Response *response; MHD_create_response_from_data() local 488 MHD_destroy_response(struct MHD_Response *response) MHD_destroy_response() argument 517 MHD_increment_response_rc(struct MHD_Response *response) MHD_increment_response_rc() argument [all...] |
/foundation/communication/netstack/test/unittest/http/cache/ |
H A D | HttpCacheStrategyTest.cpp | 46 HttpResponse response; in HWTEST_F() local 47 response.SetResponseCode(200); in HWTEST_F() 48 response.SetResponseTime("Fri, 20 May 2022 09:36:59 GMT"); in HWTEST_F() 49 auto &responseHeader = const_cast<std::map<std::string, std::string> &>(response.GetHeader()); in HWTEST_F() 53 CacheStatus status = cacheStrategy.RunStrategy(response); in HWTEST_F() 65 HttpResponse response; in HWTEST_F() local 66 response.SetResponseCode(200); in HWTEST_F() 67 response.SetResponseTime("Fri, 20 May 2022 09:36:59 GMT"); in HWTEST_F() 68 auto &responseHeader = const_cast<std::map<std::string, std::string> &>(response.GetHeader()); in HWTEST_F() 74 CacheStatus status = cacheStrategy.RunStrategy(response); in HWTEST_F() 86 HttpResponse response; HWTEST_F() local 105 HttpResponse response; HWTEST_F() local 124 HttpResponse response; HWTEST_F() local 143 HttpResponse response; HWTEST_F() local 162 HttpResponse response; HWTEST_F() local 182 HttpResponse response; HWTEST_F() local 202 HttpResponse response; HWTEST_F() local 221 HttpResponse response; HWTEST_F() local 239 HttpResponse response; HWTEST_F() local 257 HttpResponse response; HWTEST_F() local 277 HttpResponse response; HWTEST_F() local 298 HttpResponse response; HWTEST_F() local 317 HttpResponse response; HWTEST_F() local 336 HttpResponse response; HWTEST_F() local 355 HttpResponse response; HWTEST_F() local 375 HttpResponse response; HWTEST_F() local 396 HttpResponse response; HWTEST_F() local 419 HttpResponse response; HWTEST_F() local 439 HttpResponse response; HWTEST_F() local 460 HttpResponse response; HWTEST_F() local 482 HttpResponse response; switchTest() local 521 HttpResponse response; HWTEST_F() local 543 HttpResponse response; HWTEST_F() local 564 HttpResponse response; HWTEST_F() local 585 HttpResponse response; HWTEST_F() local 605 HttpResponse response; HWTEST_F() local 620 HttpResponse response; HWTEST_F() local 636 HttpResponse response; HWTEST_F() local 653 HttpResponse response; HWTEST_F() local 674 HttpResponse response; HWTEST_F() local 694 HttpResponse response; HWTEST_F() local 714 HttpResponse response; HWTEST_F() local 735 HttpResponse response; HWTEST_F() local 756 HttpResponse response; HWTEST_F() local 777 HttpResponse response; HWTEST_F() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A 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_SEC(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 in gas_server_response_timeout() 77 gas_server_free_response(struct gas_server_response *response) gas_server_free_response() argument 89 gas_server_send_resp(struct gas_server *gas, struct gas_server_handler *handler, struct gas_server_response *response, const u8 *da, int freq, u8 dialog_token, struct wpabuf *query_resp, u16 comeback_delay) gas_server_send_resp() argument 173 struct gas_server_response *response; gas_server_rx_initial_req() local 256 gas_server_handle_rx_comeback_req(struct gas_server_response *response) gas_server_handle_rx_comeback_req() argument 338 struct gas_server_response *response; gas_server_rx_comeback_req() local 405 gas_server_handle_tx_status(struct gas_server_response *response, int ack) gas_server_handle_tx_status() argument 441 struct gas_server_response *response; gas_server_tx_status() local 474 struct gas_server_response *tmp, *response = NULL; gas_server_set_resp() local 529 struct gas_server_response *response, *tmp_r; gas_server_deinit() local [all...] |
/foundation/CastEngine/castengine_wifi_display/tests/unittest/impl/session/ |
H A D | wfd_message_test.cpp | 43 WfdRtspM1Response response(1, RTSP_STATUS_OK); in HWTEST_F() 48 WfdRtspM3Response response(1, RTSP_STATUS_OK); in HWTEST_F() 49 std::string rspStr = response.Stringify(); in HWTEST_F() 57 WfdRtspM3Response response(1, RTSP_STATUS_OK); in HWTEST_F() 58 response.SetVideoFormats(VIDEO_1920X1080_30); in HWTEST_F() 63 WfdRtspM3Response response(1, RTSP_STATUS_OK); in HWTEST_F() 64 response.SetVideoFormats(VIDEO_1920X1080_25); in HWTEST_F() 69 WfdRtspM3Response response(1, RTSP_STATUS_OK); in HWTEST_F() 70 response.SetVideoFormats(VIDEO_1280X720_30); in HWTEST_F() 75 WfdRtspM3Response response( in HWTEST_F() 166 WfdRtspM3Response response; HWTEST_F() local 177 WfdRtspM3Response response; HWTEST_F() local 188 WfdRtspM3Response response; HWTEST_F() local 385 WfdRtspM6Response response; HWTEST_F() local 394 WfdRtspM6Response response; HWTEST_F() local 405 WfdRtspM6Response response; HWTEST_F() local 415 WfdRtspM6Response response; HWTEST_F() local 424 WfdRtspM6Response response; HWTEST_F() local [all...] |
/third_party/libcoap/tests/ |
H A 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->e_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 in t_error_response1() 63 coap_pdu_t *response; t_error_response2() local 93 coap_pdu_t *response; t_error_response3() local 132 coap_pdu_t *response; t_error_response4() local 173 coap_pdu_t *response; t_error_response5() local 214 coap_pdu_t *response; t_error_response6() local 255 coap_pdu_t *response; t_error_response7() local 291 coap_pdu_t *response; t_error_response8() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
H A 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 in gas_server_response_timeout() 73 gas_server_free_response(struct gas_server_response *response) gas_server_free_response() argument 94 struct gas_server_response *response; gas_server_send_resp() local 238 gas_server_handle_rx_comeback_req(struct gas_server_response *response) gas_server_handle_rx_comeback_req() argument 292 struct gas_server_response *response; gas_server_rx_comeback_req() local 359 gas_server_handle_tx_status(struct gas_server_response *response, int ack) gas_server_handle_tx_status() argument 388 struct gas_server_response *response; gas_server_tx_status() local 440 struct gas_server_response *response, *tmp_r; gas_server_deinit() local [all...] |
/third_party/gptfdisk/ |
H A D | support.cc | 77 // (If def is outside of the low-high range, an explicit response 80 uint64_t response, num; in GetNumber() local 89 num = sscanf(line, "%" PRIu64, &response); in GetNumber() 90 if (num == 1) { // user provided a 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 in GetNumber() 106 char response; GetYN() local 140 uint64_t response = def, bytesPerUnit, mult = 1, divide = 1; IeeeToInt() local [all...] |
/third_party/protobuf/conformance/ |
H A 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 [all...] |
H A D | conformance_php.php | 31 $response = new \Conformance\ConformanceResponse(); variable 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 102 $response = doTest($request); global() variable [all...] |
H A 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 [all...] |
H A 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 [all...] |
/third_party/node/deps/npm/node_modules/make-fetch-happen/lib/cache/ |
H A D | entry.js | 16 // that are named in a response's vary header 25 // allow list for response headers that will be written to the cache index 26 // note: we must not store the real response's age header, or when we load 27 // a cache policy based on the metadata it will think the cached response 45 const getMetadata = (request, response, options) => { 52 // options on which we must match the request and vary the response 59 if (response.status !== 200 && response.status !== 304) { 60 metadata.status = response.status 77 // if the response ha [all...] |
/third_party/skia/tools/skiaserve/ |
H A D | Response.cpp | 43 // SendOK just sends an empty response with a 200 OK status code. 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, "Conten in SendData() 83 MHD_Response* response = MHD_create_response_from_buffer( SendTemplate() local [all...] |
/foundation/CastEngine/castengine_wifi_display/tests/unittest/protocol/rtsp/ |
H A D | rtsp_unit_test.cpp | 199 "Digest username=\"username\", realm=\"realm\", nonce=\"nonce\", uri=\"url\", response=\"00000000\""); in HWTEST_F() 347 auto response = std::make_shared<RtspResponse>(); in HWTEST_F() local 348 EXPECT_NE(response, nullptr); in HWTEST_F() 355 auto response = std::make_shared<RtspResponse>(cseq, status); in HWTEST_F() local 356 EXPECT_NE(response, nullptr); in HWTEST_F() 361 auto response = std::make_shared<RtspResponse>(); in HWTEST_F() local 362 EXPECT_NE(response, nullptr); in HWTEST_F() 364 response->AddCustomHeader(header); in HWTEST_F() 365 EXPECT_EQ(header, response->customHeaders_); in HWTEST_F() 366 response in HWTEST_F() 373 auto response = std::make_shared<RtspResponse>(); HWTEST_F() local 383 auto response = std::make_shared<RtspResponse>(); HWTEST_F() local 394 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 422 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 436 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 451 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 466 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 476 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 486 auto response = std::make_shared<RtspResponse>(cseq, status); HWTEST_F() local 499 auto response = std::make_shared<RtspResponseOptions>(cseq, status); HWTEST_F() local 507 auto response = std::make_shared<RtspResponseOptions>(cseq, status); HWTEST_F() local 518 auto response = std::make_shared<RtspResponseOptions>(cseq, status); HWTEST_F() local 528 auto response = std::make_shared<RtspResponseDescribe>(cseq, status); HWTEST_F() local 538 auto response = std::make_shared<RtspResponseDescribe>(cseq, status); HWTEST_F() local 549 auto response = std::make_shared<RtspResponseDescribe>(cseq, status); HWTEST_F() local 560 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 570 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 581 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 592 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 604 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 617 auto response = std::make_shared<RtspResponseSetup>(cseq, status); HWTEST_F() local 630 auto response = std::make_shared<RtspResponsePlay>(cseq, status); HWTEST_F() local 638 auto response = std::make_shared<RtspResponseTeardown>(cseq, status); HWTEST_F() local 646 auto response = std::make_shared<RtspResponseGetParameter>(cseq, status); HWTEST_F() local 656 auto response = std::make_shared<RtspResponseGetParameter>(cseq, status); HWTEST_F() local 667 auto response = std::make_shared<RtspResponseSetParameter>(cseq, status); HWTEST_F() local [all...] |
/third_party/node/deps/undici/src/lib/fetch/ |
H A D | index.js | 11 } = require('./response') 196 // 12. Let handleFetchDone given response response be to finalize and 197 // report timing with response, globalObject, and "fetch". 198 const handleFetchDone = (response) => 199 finalizeAndReportTiming(response, 'fetch') 203 // given response being these substeps: 205 const processResponse = (response) => { 211 // 2. If response’s aborted flag is set, then: 212 if (response [all...] |
/foundation/ai/ai_engine/services/server/communication_adapter/source/ |
H A D | client_listener_handler.cpp | 45 void AsyncProcessWorker::IpcIoResponse(IResponse *response, IpcIo &io, char *data, int length) in IpcIoResponse() argument 47 if (response == nullptr) { in IpcIoResponse() 48 HILOGE("[ClientListenerHandler]Input param response is nullptr."); in IpcIoResponse() 53 int retCode = response->GetRetCode(); in IpcIoResponse() 56 int requestId = response->GetRequestId(); in IpcIoResponse() 59 long long transactionId = response->GetTransactionId(); in IpcIoResponse() 63 DataInfo result = response->GetResult(); in IpcIoResponse() 64 ParcelDataInfo(&io, &result, response->GetClientUid()); in IpcIoResponse() 69 IResponse *response = handler_->FetchCallbackRecord(); in OneAction() local 70 CHK_RET(response in OneAction() 118 IResponse *response = nullptr; FetchCallbackRecord() local 143 AddCallbackRecord(IResponse *response) AddCallbackRecord() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/vkscserver/ |
H A 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 server we should received true"); 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 a name that is already in use we should received false"); 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 server store we should received true"); in RunGetContentTests() 132 Except("StoreContentResponse::data", response in RunGetContentTests() 139 GetContentResponse response; RunGetContentTests() local 167 CompileShaderResponse response; RunCompileShaderTests() local [all...] |
/third_party/protobuf/js/experimental/runtime/kernel/conformance/ |
H A D | conformance_testee.js | 11 * Creates a `proto.conformance.ConformanceResponse` response according to the 14 * @return {!ConformanceResponse} response 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 [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
H A D | applicationlayer.c | 36 struct SPDY_Response *response, in spdy_callback_response_done() 46 SPDY_destroy_response(response); in spdy_callback_response_done() 199 * Callback to be called when the response queue object was handled and 204 * @param status shows if actually the response was sent or it was 207 * status indicates an error but parts of the response headers 223 "response queue must have either control frame or data frame"); in spdy_handler_response_queue_result() 227 response_queue->rrcb(response_queue->rrcb_cls, response_queue->response, request, status, streamopened); 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, in SPDY_build_response() 35 spdy_callback_response_done(void *cls, struct SPDY_Response *response, struct SPDY_Request *request, enum SPDY_RESPONSE_RESULT status, bool streamopened) spdy_callback_response_done() argument 488 struct SPDY_Response *response; SPDY_build_response_with_callback() local 525 SPDY_queue_response(struct SPDY_Request * request, struct SPDY_Response *response, bool closestream, bool consider_priority, SPDY_ResponseResultCallback rrcb, void * rrcb_cls) SPDY_queue_response() argument [all...] |
/third_party/python/Lib/test/ |
H A D | test_docxmlrpc.py | 93 response = self.client.getresponse() 95 self.assertEqual(response.status, 200) 96 self.assertEqual(response.getheader("Content-type"), "text/html; charset=UTF-8") 99 response.read() 103 response = self.client.getresponse() 105 self.assertEqual(response.status, 200) 106 self.assertEqual(response.getheader("Content-type"), "text/css; charset=UTF-8") 109 response.read() 113 response = self.client.getresponse() 115 self.assertEqual(response [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/response/ |
H A D | mod.rs | 26 /// The status-line and field-line of a response-message are stored in 108 use crate::response::Response; 123 let response = Response { in ut_response_version() 127 assert_eq!(response.version().as_str(), "HTTP/1.1") in ut_response_version() 142 let response = Response { in ut_response_status_code() 146 assert_eq!(response.status().as_u16(), 304) in ut_response_status_code() 160 let response = Response { in ut_response_headers() 172 assert_eq!(response.headers(), &headers) in ut_response_headers() 186 let response = Response { in ut_response_body() 190 assert_eq!(*response in ut_response_body() 204 let mut response = Response { ut_response_body_mut() variables [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/ |
H A D | Server.cpp | 80 dap::InitializeResponse response; in Impl() 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() 96 dap::SetExceptionBreakpointsResponse response; in Impl() 97 return response; in Impl() 104 dap::SetFunctionBreakpointsResponse response; in Impl() 114 response in Impl() [all...] |
/third_party/node/deps/v8/src/inspector/ |
H A D | v8-runtime-agent-impl.cc | 84 void sendFailure(const protocol::DispatchResponse& response) override { 85 return m_callback->sendFailure(response); 104 Response response = injectedScript->wrapEvaluateResult( in wrapEvaluateResultAsync() local 107 if (response.IsSuccess()) { in wrapEvaluateResultAsync() 111 callback->sendFailure(response); in wrapEvaluateResultAsync() 133 Response response = scope.injectedScript()->resolveCallArgument( in innerCallFunctionOn() local 135 if (!response.IsSuccess()) { in innerCallFunctionOn() 136 callback->sendFailure(response); in innerCallFunctionOn() 160 Response response = scope.initialize(); in innerCallFunctionOn() local 161 if (!response in innerCallFunctionOn() 264 Response response = ensureContext(m_inspector, m_session->contextGroupId(), evaluate() local 348 Response response = scope.initialize(); awaitPromise() local 392 Response response = scope.initialize(); callFunctionOn() local 406 Response response = ensureContext(m_inspector, m_session->contextGroupId(), callFunctionOn() local 443 Response response = scope.initialize(); getProperties() local 479 Response response = scope.initialize(); releaseObject() local 532 Response response = ensureContext(m_inspector, m_session->contextGroupId(), compileScript() local 586 Response response = ensureContext(m_inspector, m_session->contextGroupId(), runScript() local 647 Response response = scope.initialize(); queryObjects() local 663 Response response = ensureContext(m_inspector, m_session->contextGroupId(), globalLexicalScopeNames() local 821 Response response = scope.initialize(); getExceptionDetails() local [all...] |
/third_party/node/lib/internal/ |
H A D | wasm_web_api.js | 22 const response = await PromiseResolve(source); 23 if (!(response instanceof lazyUndici().Response)) { 25 'source', ['Response', 'Promise resolving to Response'], response); 28 const contentType = response.headers.get('Content-Type'); 34 if (!response.ok) { 36 `has status code ${response.status}`); 39 if (response.bodyUsed !== false) { 43 if (response.url) { 44 streamState.setURL(response.url); 47 // Pass all data from the response bod [all...] |
/third_party/node/test/parallel/ |
H A D | test-http-response-status-message.js | 31 response: 'HTTP/1.1 200 OK\r\n\r\n' }, 33 response: 'HTTP/1.1 500 Internal Server Error\r\n\r\n' }, 35 response: 'HTTP/1.1 302 Moved Temporarily\r\n\r\n' }, 37 response: 'HTTP/1.1 200 \r\n\r\n' }, 39 response: 'HTTP/1.1 200\r\n\r\n' }, 56 connection.write(testCase.response); 69 }, function(response) { 71 console.log(`client: actual status message: ${response.statusMessage}`); 72 assert.strictEqual(testCase.statusMessage, response.statusMessage); 74 response [all...] |