Home
last modified time | relevance | path

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

/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/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/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/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.py147 body_length = getattr(
149 self.headers['content-length'] = str(body_length)
/external/wpa_supplicant_8/src/pae/
Dieee802_1x_kay.c1957 int (*body_length)(struct ieee802_1x_mka_participant *participant); member
1967 .body_length = ieee802_1x_mka_basic_body_length,
1975 .body_length = ieee802_1x_mka_get_live_peer_length,
1983 .body_length = ieee802_1x_mka_get_potential_peer_length,
1991 .body_length = ieee802_1x_mka_get_sak_use_length,
1999 .body_length = ieee802_1x_mka_get_dist_sak_length,
2007 .body_length = NULL,
2015 .body_length = NULL,
2023 .body_length = NULL,
2031 .body_length = ieee802_1x_mka_get_icv_length,
[all …]
/external/python/cpython3/Lib/email/
Dquoprimime.py97 def body_length(bytearray): function
/external/grpc-grpc/test/core/util/
Dport_server_client.cc183 for (i = 0; i < response->body_length; i++) { in got_port_from_server()
/external/grpc-grpc/test/core/security/
Djwt_verifier_test.cc316 response.body_length = strlen(body); in http_response()
Dcredentials_test.cc152 response.body_length = strlen(body); in http_response()
/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()
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py4302 eq(quoprimime.body_length(bytes([c])), 1)
4304 eq(quoprimime.body_length(bytes([c])), 3)