/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | demo_https.c | 183 * Mutex used when we update the cached directory response object. 194 * Mark the given response as HTML for the brower. 196 * @param response response to mark 199 mark_as_html (struct MHD_Response *response) in mark_as_html() argument 201 (void) MHD_add_response_header (response, in mark_as_html() 209 * given response. 211 * @param response new directory response 214 update_cached_response (struct MHD_Response *response) in update_cached_response() argument 307 struct MHD_Response *response; update_directory() local 420 struct MHD_Response *response; global() member 682 struct MHD_Response *response; generate_page() local [all...] |
H A D | refuse_post_example.c | 46 struct MHD_Response *response; in ahc_echo() local 59 response = MHD_create_response_from_buffer (strlen (BUSYPAGE), in ahc_echo() 64 response); in ahc_echo() 65 MHD_destroy_response (response); in ahc_echo() 71 response = MHD_create_response_from_buffer (strlen (me), in ahc_echo() 74 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); in ahc_echo() 75 MHD_destroy_response (response); in ahc_echo()
|
H A D | fileserver_example_external_select.c | 58 struct MHD_Response *response; in ahc_echo() local 79 response = MHD_create_response_from_buffer (strlen (PAGE), in ahc_echo() 82 ret = MHD_queue_response (connection, MHD_HTTP_NOT_FOUND, response); in ahc_echo() 83 MHD_destroy_response (response); in ahc_echo() 87 response = MHD_create_response_from_callback (buf.st_size, 32 * 1024, /* 32k page size */ in ahc_echo() 91 if (response == NULL) in ahc_echo() 96 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); in ahc_echo() 97 MHD_destroy_response (response); in ahc_echo()
|
H A D | authorization_example.c | 51 struct MHD_Response *response; in ahc_echo() local 73 response = MHD_create_response_from_buffer (strlen (DENIED), in ahc_echo() 76 ret = MHD_queue_basic_auth_fail_response (connection,"TestRealm",response); in ahc_echo() 80 response = MHD_create_response_from_buffer (strlen (me), in ahc_echo() 83 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); in ahc_echo() 86 MHD_destroy_response (response); in ahc_echo()
|
H A D | spdy_fileserver.c | 122 struct SPDY_Response *response, in response_done_callback() 137 SPDY_destroy_response(response); in response_done_callback() 163 struct SPDY_Response *response=NULL; in standard_request_handler() local 185 response = SPDY_build_response(SPDY_HTTP_INTERNAL_SERVER_ERROR,NULL,SPDY_HTTP_VERSION_1_1,NULL,NULL,0); in standard_request_handler() 226 response = SPDY_build_response_with_callback(200,NULL, in standard_request_handler() 231 if(NULL==response){ in standard_request_handler() 232 printf("no response obj\n"); in standard_request_handler() 236 if(SPDY_queue_response(request,response,true,false,&response_done_callback,fd)!=SPDY_YES) in standard_request_handler() 253 response = SPDY_build_response(SPDY_HTTP_NOT_FOUND,NULL,SPDY_HTTP_VERSION_1_1,NULL,NULL,0); in standard_request_handler() 256 if(NULL==response){ in standard_request_handler() 121 response_done_callback(void *cls, struct SPDY_Response *response, struct SPDY_Request *request, enum SPDY_RESPONSE_RESULT status, bool streamopened) response_done_callback() argument [all...] |
/third_party/node/test/parallel/ |
H A D | test-tls-ocsp-callback.js | 49 const requestCount = testOptions.response ? 0 : 1; 52 assert.strictEqual(testOptions.response, undefined); 80 return setTimeout(callback, 100, null, testOptions.response ? 81 Buffer.from(testOptions.response) : null); 93 if (testOptions.response) { 94 assert.strictEqual(resp.toString(), testOptions.response); 107 test({ ocsp: true, response: false }); 108 test({ ocsp: true, response: 'hello world' }); 112 test({ ocsp: true, response: 'hello pfx', pfx: pfx, passphrase: 'sample' });
|
H A D | test-http2-https-fallback.js | 25 function onRequest(request, response) { 28 response.writeHead(200, { 'content-type': 'application/json' }); 29 response.end(JSON.stringify({ 44 request.on('response', common.mustCall((headers) => { 91 common.mustCall((response) => { 92 strictEqual(response.statusCode, 200); 93 strictEqual(response.statusMessage, 'OK'); 94 strictEqual(response.headers['content-type'], 'application/json'); 96 response.setEncoding('utf8'); 98 response [all...] |
H A D | test-http-expect-handling.js | 37 http.get(options, (response) => { 39 console.log(`client: statusCode: ${response.statusCode}`); 40 assert.strictEqual(response.statusCode, test); 41 assert.strictEqual(response.statusMessage, 'Expectation Failed'); 43 response.on('end', () => { 48 response.resume();
|
H A D | test-http-keep-alive.js | 43 }, common.mustCall((response) => { 46 response.resume(); 51 }, common.mustCall((response) => { 54 response.resume(); 59 }, common.mustCall((response) => { 60 response.on('end', common.mustCall(() => { 65 response.resume();
|
H A D | test-http-server-headers-timeout-keepalive.js | 48 let response = ''; 52 response += chunk; 54 // First response has ended 55 if (!second && response.endsWith('\r\n\r\n')) { 57 response.split('\r\n')[0], 66 response = ''; 83 response,
|
H A D | test-http-server-request-timeout-keepalive.js | 46 let response = ''; 50 response += chunk; 52 // First response has ended 53 if (!second && response.endsWith('\r\n\r\n')) { 55 response.split('\r\n')[0], 64 response = ''; 81 response,
|
/third_party/node/deps/npm/node_modules/make-fetch-happen/lib/cache/ |
H A D | policy.js | 11 // a fake empty response, used when only testing the 32 const responseObject = (response) => { 34 status: response.status, 38 response.headers.forEach((value, key) => { 46 constructor ({ entry, request, response, options }) { 49 this.response = responseObject(response) 51 this.policy = new CacheSemantics(this.request, this.response, policyOptions) 118 // returns true if the request and response allow caching 124 // header ourselves, it returns true if the response' [all...] |
/third_party/node/deps/npm/node_modules/http-cache-semantics/ |
H A D | index.js | 69 function isErrorResponse(response) { 70 // consider undefined response as faulty 71 if(!response) { 74 return errorStatusCodes.has(response.status); 179 // The "no-store" request directive indicates that a cache MUST NOT store any part of either this request or any response to it. 182 // A cache MUST NOT store a response to any request, unless: 187 // the response status code is understood by the cache, and 189 // the "no-store" cache directive does not appear in request or response header fields, and 191 // the "private" response directive does not appear in the response, i [all...] |
/third_party/node/deps/v8/src/torque/ls/ |
H A D | message-handler.cc | 212 InitializeResponse response; in HandleInitializeRequest() local 213 response.set_id(request.id()); in HandleInitializeRequest() 214 response.result().capabilities().textDocumentSync(); in HandleInitializeRequest() 215 response.result().capabilities().set_definitionProvider(true); in HandleInitializeRequest() 216 response.result().capabilities().set_documentSymbolProvider(true); in HandleInitializeRequest() 225 writer(std::move(response.GetJsonValue())); in HandleInitializeRequest() 268 GotoDefinitionResponse response; in HandleGotoDefinitionRequest() local 269 response.set_id(request.id()); in HandleGotoDefinitionRequest() 274 // Unknown source files cause an empty response which corresponds with in HandleGotoDefinitionRequest() 277 response in HandleGotoDefinitionRequest() 305 DocumentSymbolResponse response; HandleDocumentSymbolRequest() local [all...] |
/third_party/protobuf/conformance/ |
H A D | conformance_test.cc | 192 const ConformanceResponse& response, in ReportFailure() 208 StringAppendF(&output_, " request=%s, response=%s\n", in ReportFailure() 210 response.ShortDebugString().c_str()); in ReportFailure() 215 const ConformanceResponse& response) { in ReportSkip() 217 StringAppendF(&output_, "SKIPPED, test=%s request=%s, response=%s\n", in ReportSkip() 219 response.ShortDebugString().c_str()); in ReportSkip() 240 ConformanceResponse response; in RunValidBinaryInputTest() local 241 RunTest(setting.GetTestName(), request, &response); in RunValidBinaryInputTest() 242 VerifyResponse(setting, equivalent_wire_format, response, true, in RunValidBinaryInputTest() 248 const string& equivalent_wire_format, const ConformanceResponse& response, in VerifyResponse() 189 ReportFailure(const string& test_name, ConformanceLevel level, const ConformanceRequest& request, const ConformanceResponse& response, const char* fmt, ...) ReportFailure() argument 213 ReportSkip(const string& test_name, const ConformanceRequest& request, const ConformanceResponse& response) ReportSkip() argument 246 VerifyResponse( const ConformanceRequestSetting& setting, const string& equivalent_wire_format, const ConformanceResponse& response, bool need_report_success, bool require_same_wire_format) VerifyResponse() argument 310 RunTest(const string& test_name, const ConformanceRequest& request, ConformanceResponse* response) RunTest() argument [all...] |
/third_party/skia/third_party/externals/microhttpd/doc/examples/ |
H A D | tlsauthentication.c | 122 struct MHD_Response *response; in ask_for_authentication() local 126 response = MHD_create_response_from_buffer (0, NULL, in ask_for_authentication() 128 if (!response) in ask_for_authentication() 138 ret = MHD_add_response_header (response, "WWW-Authenticate", headervalue); in ask_for_authentication() 142 MHD_destroy_response (response); in ask_for_authentication() 146 ret = MHD_queue_response (connection, MHD_HTTP_UNAUTHORIZED, response); in ask_for_authentication() 148 MHD_destroy_response (response); in ask_for_authentication() 196 struct MHD_Response *response; in secret_page() local 199 response = in secret_page() 202 if (!response) in secret_page() [all...] |
H A D | basicauthentication.c | 30 struct MHD_Response *response; in answer_to_connection() local 49 response = in answer_to_connection() 54 response); in answer_to_connection() 59 response = in answer_to_connection() 62 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); in answer_to_connection() 64 MHD_destroy_response (response); in answer_to_connection()
|
/third_party/libcoap/src/ |
H A D | coap_net.c | 778 coap_pdu_t *response; in coap_send_ack() local 783 response = coap_pdu_init(COAP_MESSAGE_ACK, 0, request->mid, 0); in coap_send_ack() 784 if (response) in coap_send_ack() 785 result = coap_send_internal(session, response); in coap_send_ack() 847 coap_pdu_t *response; in coap_send_error() local 853 response = coap_new_error_response(request, code, opts); in coap_send_error() 854 if (response) in coap_send_error() 855 result = coap_send_internal(session, response); in coap_send_error() 863 coap_pdu_t *response; in coap_send_message_type() local 867 response in coap_send_message_type() 2370 coap_pdu_t *response; coap_new_error_response() local 2502 hnd_get_wellknown(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) hnd_get_wellknown() argument 2660 no_response(coap_pdu_t *request, coap_pdu_t *response, coap_session_t *session, coap_resource_t *resource) no_response() argument 2760 coap_pdu_t *response = NULL; handle_request() local 3503 coap_pdu_t *response; check_token_size() local 3531 coap_pdu_t *response; coap_dispatch() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | destructureOfVariableSameAsShorthand.js | 11 get().then((response) => { 13 const body = response.data; 18 const response = await get() 20 const body = response.data; 68 var response, body, data, shouldBeNever;
73 get().then(function (response) {
75 var body = response.data;
85 response = _a.sent();
86 body = response.data;
|
/third_party/protobuf/src/google/protobuf/compiler/ |
H A D | plugin.cc | 66 const Version& compiler_version, CodeGeneratorResponse* response, in GeneratorResponseContext() 69 response_(response), in GeneratorResponseContext() 105 CodeGeneratorResponse* response, std::string* error_msg) { in GenerateCode() 127 GeneratorResponseContext context(request.compiler_version(), response, in GenerateCode() 135 response->set_supported_features(generator.GetSupportedFeatures()); in GenerateCode() 143 response->set_error(error); in GenerateCode() 169 CodeGeneratorResponse response; in PluginMain() local 171 if (GenerateCode(request, *generator, &response, &error_msg)) { in PluginMain() 172 if (!response.SerializeToFileDescriptor(STDOUT_FILENO)) { in PluginMain() 65 GeneratorResponseContext( const Version& compiler_version, CodeGeneratorResponse* response, const std::vector<const FileDescriptor*>& parsed_files) GeneratorResponseContext() argument 103 GenerateCode(const CodeGeneratorRequest& request, const CodeGenerator& generator, CodeGeneratorResponse* response, std::string* error_msg) GenerateCode() argument
|
/third_party/libcoap/examples/ |
H A D | coap-server.c | 225 * being read by a blocked response to GET. 268 coap_pdu_t *response) { in hnd_get_index() 270 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT); in hnd_get_index() 271 coap_add_data_large_response(resource, session, request, response, in hnd_get_index() 282 coap_pdu_t *response) { in hnd_get_fetch_time() 315 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND); in hnd_get_fetch_time() 321 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT); in hnd_get_fetch_time() 322 coap_add_data_large_response(resource, session, request, response, in hnd_get_fetch_time() 328 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_FOUND); in hnd_get_fetch_time() 337 coap_pdu_t *response) { in hnd_put_time() 264 hnd_get_index(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_get_index() argument 278 hnd_get_fetch_time(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) hnd_get_fetch_time() argument 333 hnd_put_time(coap_resource_t *resource, coap_session_t *session COAP_UNUSED, const coap_pdu_t *request, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_put_time() argument 397 hnd_get_async(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) hnd_get_async() argument 466 hnd_get_example_data(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) hnd_get_example_data() argument 507 hnd_put_example_data(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_put_example_data() argument 776 get_proxy_session(coap_session_t *session, coap_pdu_t *response, const coap_bin_const_t *token, const coap_string_t *query, coap_pdu_code_t req_code, coap_pdu_type_t req_type) get_proxy_session() argument 837 coap_pdu_t *response; remove_proxy_association() local 878 get_ongoing_proxy_session(coap_session_t *session, coap_pdu_t *response, const coap_bin_const_t *token, const coap_string_t *query, coap_pdu_code_t req_code, coap_pdu_type_t req_type, const coap_uri_t *uri) get_ongoing_proxy_session() argument 979 hnd_proxy_uri(coap_resource_t *resource COAP_UNUSED, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) hnd_proxy_uri() argument 1199 hnd_delete(coap_resource_t *resource, coap_session_t *session COAP_UNUSED, const coap_pdu_t *request, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_delete() argument 1241 hnd_get(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) hnd_get() argument 1289 hnd_put_post(coap_resource_t *resource, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_put_post() argument 1513 hnd_put_post_unknown(coap_resource_t *resource COAP_UNUSED, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) hnd_put_post_unknown() argument [all...] |
H A D | coap-rd.c | 142 coap_pdu_t *response) { in hnd_get_resource() 146 coap_pdu_set_code(response, COAP_RESPONSE_CODE_CONTENT); in hnd_get_resource() 148 coap_add_option(response, in hnd_get_resource() 155 coap_add_option(response, COAP_OPTION_ETAG, rd->etag_len, rd->etag); in hnd_get_resource() 158 coap_add_data(response, rd->data.length, rd->data.s); in hnd_get_resource() 166 coap_pdu_t *response) { in hnd_put_resource() 168 coap_pdu_set_code(response, COAP_RESPONSE_CODE_NOT_IMPLEMENTED); in hnd_put_resource() 172 coap_pdu_t *response; in hnd_put_resource() 218 /* FIXME: do not create a new response but use the old one instead */ in hnd_put_resource() 219 response in hnd_put_resource() 138 hnd_get_resource(coap_resource_t *resource, coap_session_t *session COAP_UNUSED, const coap_pdu_t *request COAP_UNUSED, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_get_resource() argument 162 hnd_put_resource(coap_resource_t *resource COAP_UNUSED, coap_session_t *session COAP_UNUSED, const coap_pdu_t *request COAP_UNUSED, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_put_resource() argument 238 hnd_delete_resource(coap_resource_t *resource, coap_session_t *session COAP_UNUSED, const coap_pdu_t *request COAP_UNUSED, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_delete_resource() argument 256 hnd_get_rd(coap_resource_t *resource COAP_UNUSED, coap_session_t *session COAP_UNUSED, const coap_pdu_t *request COAP_UNUSED, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_get_rd() argument 384 hnd_post_rd(coap_resource_t *resource COAP_UNUSED, coap_session_t *session, const coap_pdu_t *request, const coap_string_t *query COAP_UNUSED, coap_pdu_t *response) hnd_post_rd() argument [all...] |
/third_party/node/lib/internal/modules/esm/ |
H A D | hooks.js | 591 const response = this.#worker.receiveMessageSync(); 592 if (response == null || response.message.status === 'exit') { return; } 593 const { preloadScripts } = this.#unwrapMessage(response); 627 // On the next lines, the main thread will await a response from the worker thread that might 636 let response; 638 debug('wait for async response from worker', { method, args }); 642 response = receiveMessageOnPort(asyncCommChannel.port1); 643 } while (response == null); 644 debug('got async response fro [all...] |
/third_party/curl/lib/vauth/ |
H A D | digest.c | 321 * This is used to generate an already encoded DIGEST-MD5 response message 344 char *response = NULL; in Curl_auth_create_digest_md5_message() local 444 /* Now calculate the response hash */ in Curl_auth_create_digest_md5_message() 474 /* Generate the response */ in Curl_auth_create_digest_md5_message() 475 response = aprintf("username=\"%s\",realm=\"%s\",nonce=\"%s\"," in Curl_auth_create_digest_md5_message() 476 "cnonce=\"%s\",nc=\"%s\",digest-uri=\"%s\",response=%s," in Curl_auth_create_digest_md5_message() 481 if(!response) in Curl_auth_create_digest_md5_message() 484 /* Return the response. */ in Curl_auth_create_digest_md5_message() 485 Curl_bufref_set(out, response, strlen(response), curl_fre in Curl_auth_create_digest_md5_message() 692 char *response = NULL; auth_create_digest_http_message() local [all...] |
/third_party/python/Lib/idlelib/ |
H A D | rpc.py | 248 response = self.getresponse(seq, wait=0.05) 249 self.debug(("asyncreturn:%d:response: " % seq), response) 250 return self.decoderesponse(response) 252 def decoderesponse(self, response): 253 how, what = response 291 response = self._getresponse(myseq, wait) 292 if response is not None: 293 how, what = response 295 response [all...] |