Home
last modified time | relevance | path

Searched refs:body_length (Results 1 – 25 of 28) sorted by relevance

12

/external/grpc-grpc/src/core/lib/http/
Dparser.cc248 size_t* body_length = nullptr; in addbyte_body() local
252 body_length = &parser->http.response->body_length; in addbyte_body()
255 body_length = &parser->http.request->body_length; in addbyte_body()
262 if (*body_length == parser->body_capacity) { in addbyte_body()
267 (*body)[*body_length] = static_cast<char>(byte); in addbyte_body()
268 (*body_length)++; in addbyte_body()
Dparser.h66 size_t body_length; member
78 size_t body_length; member
/external/rust/crates/grpcio-sys/grpc/src/core/lib/http/
Dparser.cc268 size_t* body_length = nullptr; in addbyte_body() local
272 body_length = &parser->http.response->body_length; in addbyte_body()
275 body_length = &parser->http.request->body_length; in addbyte_body()
282 if (*body_length == parser->body_capacity) { in addbyte_body()
286 (*body)[*body_length] = static_cast<char>(byte); in addbyte_body()
287 (*body_length)++; in addbyte_body()
Dparser.h66 size_t body_length; member
78 size_t body_length = 0; member
/external/grpc-grpc/test/core/http/
Dparser_test.cc66 GPR_ASSERT(strlen(expect_body) == request.body_length); in test_request_succeeds()
67 GPR_ASSERT(0 == memcmp(expect_body, request.body, request.body_length)); in test_request_succeeds()
69 GPR_ASSERT(request.body_length == 0); in test_request_succeeds()
121 GPR_ASSERT(strlen(expect_body) == response.body_length); in test_succeeds()
122 GPR_ASSERT(0 == memcmp(expect_body, response.body, response.body_length)); in test_succeeds()
124 GPR_ASSERT(response.body_length == 0); in test_succeeds()
Dhttpcli_test.cc53 GPR_ASSERT(response->body_length == strlen(expect)); in on_finish()
54 GPR_ASSERT(0 == memcmp(expect, response->body, response->body_length)); in on_finish()
Dhttpscli_test.cc55 GPR_ASSERT(response->body_length == strlen(expect)); in on_finish()
56 GPR_ASSERT(0 == memcmp(expect, response->body, response->body_length)); in on_finish()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc149 if (response->body_length > 0) { in grpc_oauth2_token_fetcher_credentials_parse_server_response()
151 static_cast<char*>(gpr_malloc(response->body_length + 1)); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
152 null_terminated_body[response->body_length] = '\0'; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
153 memcpy(null_terminated_body, response->body, response->body_length); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
567 size_t body_length = 0; in fetch_oauth2() local
568 grpc_error* err = FillBody(&body, &body_length); in fetch_oauth2()
592 http_context, pollent, resource_quota, &request, body, body_length, in fetch_oauth2()
601 grpc_error* FillBody(char** body, size_t* body_length) { in FillBody() argument
608 auto cleanup = [&body, &body_length, &body_parts, &subject_token, in FillBody()
613 *body_length = body_str.size(); in FillBody()
/external/autotest/client/common_lib/cros/fake_device_server/
Dcommon_util.py17 body_length = int(cherrypy.request.headers.get('Content-Length', 0))
18 data = cherrypy.request.rfile.read(body_length)
Doauth.py71 body_length = int(cherrypy.request.headers.get('Content-Length', 0))
72 body = cherrypy.request.rfile.read(body_length)
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc132 if (response->body_length > 0) { in grpc_oauth2_token_fetcher_credentials_parse_server_response()
134 static_cast<char*>(gpr_malloc(response->body_length + 1)); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
135 null_terminated_body[response->body_length] = '\0'; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
136 memcpy(null_terminated_body, response->body, response->body_length); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/external/
Dexternal_account_credentials.cc316 std::string(ctx_->response.body, ctx_->response.body_length).c_str()); in OnExchangeTokenInternal()
335 ctx_->response.body_length); in ImpersenateServiceAccount()
405 ctx_->response.body_length); in OnImpersenateServiceAccountInternal()
443 metadata_req_->response.body_length = body.length(); in OnImpersenateServiceAccountInternal()
Daws_external_account_credentials.cc192 ctx_->response.body_length); in OnRetrieveRegionInternal()
240 role_name_ = std::string(ctx_->response.body, ctx_->response.body_length); in OnRetrieveRoleNameInternal()
304 ctx_->response.body_length); in OnRetrieveSigningKeysInternal()
Durl_external_account_credentials.cc168 ctx_->response.body_length); in OnRetrieveSubjectTokenInternal()
/external/wpa_supplicant_8/src/wps/
Dwps_upnp_web.c314 int body_length; in web_connection_parse_get() local
404 body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_parse_get()
405 os_snprintf(len_buf, 10, "%d", body_length); in web_connection_parse_get()
851 int body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_send_reply() local
853 os_snprintf(len_buf, sizeof(len_buf), "%d", body_length); in web_connection_send_reply()
/external/python/apitools/apitools/base/py/
Dhttp_wrapper.py152 body_length = getattr(
154 self.headers['content-length'] = str(body_length)
/external/python/cpython3/Lib/email/
Dquoprimime.py97 def body_length(bytearray): function
/external/wpa_supplicant_8/src/pae/
Dieee802_1x_kay.c2004 int (*body_length)(struct ieee802_1x_mka_participant *participant); member
2014 .body_length = ieee802_1x_mka_basic_body_length,
2022 .body_length = ieee802_1x_mka_get_live_peer_length,
2030 .body_length = ieee802_1x_mka_get_potential_peer_length,
2038 .body_length = ieee802_1x_mka_get_sak_use_length,
2046 .body_length = ieee802_1x_mka_get_dist_sak_length,
2054 .body_length = NULL,
2062 .body_length = NULL,
2070 .body_length = NULL,
2078 .body_length = ieee802_1x_mka_get_icv_length,
[all …]
/external/libdrm/tests/amdgpu/
Dbasic_tests.c515 uint32_t body_length; member
2330 memcpy(ptr + shader->header_length + shader->body_length * i, in amdgpu_dispatch_load_cs_shader_hang_slow()
2332 shader->body_length * sizeof(uint32_t)); in amdgpu_dispatch_load_cs_shader_hang_slow()
2334 memcpy(ptr + shader->header_length + shader->body_length * loop, in amdgpu_dispatch_load_cs_shader_hang_slow()
2335 shader->shader + shader->header_length + shader->body_length, in amdgpu_dispatch_load_cs_shader_hang_slow()
2980 memcpy(ptr + shader->header_length + shader->body_length * i, in amdgpu_draw_load_ps_shader_hang_slow()
2982 shader->body_length * sizeof(uint32_t)); in amdgpu_draw_load_ps_shader_hang_slow()
2984 memcpy(ptr + shader->header_length + shader->body_length * loop, in amdgpu_draw_load_ps_shader_hang_slow()
2985 shader->shader + shader->header_length + shader->body_length, in amdgpu_draw_load_ps_shader_hang_slow()
/external/grpc-grpc/test/core/util/
Dport_server_client.cc183 for (i = 0; i < response->body_length; i++) { in got_port_from_server()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dhttp_connect_handshaker.cc340 request.http.body_length = 0; in DoHandshake()
/external/grpc-grpc/test/core/security/
Djwt_verifier_test.cc316 response.body_length = strlen(body); in http_response()
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Djwt_verifier_test.cc334 response.body_length = strlen(body); in http_response()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/
Djwt_verifier.cc420 absl::string_view(response->body, response->body_length), &error); in json_from_http()
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djwt_verifier.cc416 json = grpc_json_parse_string_with_len(response->body, response->body_length); in json_from_http()

12