Lines Matching refs:r

278     nxt_unit_request_t  *r;  in nxt_java_Request_getHeader()  local
285 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getHeader()
287 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getHeader()
303 nxt_unit_request_t *r; in nxt_java_Request_getHeaderNames() local
305 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getHeaderNames()
307 return nxt_java_newHeaderNamesEnumeration(env, r->fields, r->fields_count); in nxt_java_Request_getHeaderNames()
317 nxt_unit_request_t *r; in nxt_java_Request_getHeaders() local
324 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getHeaders()
326 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getHeaders()
332 f = r->fields + r->fields_count; in nxt_java_Request_getHeaders()
335 return nxt_java_newHeadersEnumeration(env, r->fields, r->fields_count, in nxt_java_Request_getHeaders()
336 f - r->fields); in nxt_java_Request_getHeaders()
348 nxt_unit_request_t *r; in nxt_java_Request_getIntHeader() local
357 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getIntHeader()
359 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getIntHeader()
384 nxt_unit_request_t *r; in nxt_java_Request_getMethod() local
386 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getMethod()
388 return (*env)->NewStringUTF(env, nxt_unit_sptr_get(&r->method)); in nxt_java_Request_getMethod()
396 nxt_unit_request_t *r; in nxt_java_Request_getQueryString() local
398 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getQueryString()
400 if (r->query.offset != 0) { in nxt_java_Request_getQueryString()
401 query = nxt_unit_sptr_get(&r->query); in nxt_java_Request_getQueryString()
413 nxt_unit_request_t *r; in nxt_java_Request_getRequestURI() local
415 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getRequestURI()
417 target = nxt_unit_sptr_get(&r->target); in nxt_java_Request_getRequestURI()
419 if (r->query.offset != 0) { in nxt_java_Request_getRequestURI()
420 query = nxt_unit_sptr_get(&r->query); in nxt_java_Request_getRequestURI()
431 nxt_unit_request_t *r; in nxt_java_Request_getContentLength() local
433 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getContentLength()
435 return r->content_length; in nxt_java_Request_getContentLength()
443 nxt_unit_request_t *r; in nxt_java_Request_getContentType() local
445 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getContentType()
447 if (r->content_type_field != NXT_UNIT_NONE_FIELD) { in nxt_java_Request_getContentType()
448 f = r->fields + r->content_type_field; in nxt_java_Request_getContentType()
460 nxt_unit_request_t *r; in nxt_java_Request_getLocalAddr() local
462 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getLocalAddr()
464 return nxt_java_newString(env, nxt_unit_sptr_get(&r->local_addr), in nxt_java_Request_getLocalAddr()
465 r->local_addr_length); in nxt_java_Request_getLocalAddr()
473 nxt_unit_request_t *r; in nxt_java_Request_getLocalName() local
475 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getLocalName()
477 local = nxt_unit_sptr_get(&r->local_addr); in nxt_java_Request_getLocalName()
478 colon = memchr(local, ':', r->local_addr_length); in nxt_java_Request_getLocalName()
481 colon = local + r->local_addr_length; in nxt_java_Request_getLocalName()
493 nxt_unit_request_t *r; in nxt_java_Request_getLocalPort() local
495 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getLocalPort()
497 local = nxt_unit_sptr_get(&r->local_addr); in nxt_java_Request_getLocalPort()
498 colon = memchr(local, ':', r->local_addr_length); in nxt_java_Request_getLocalPort()
504 tmp = local[r->local_addr_length]; in nxt_java_Request_getLocalPort()
506 local[r->local_addr_length] = '\0'; in nxt_java_Request_getLocalPort()
510 local[r->local_addr_length] = tmp; in nxt_java_Request_getLocalPort()
519 nxt_unit_request_t *r; in nxt_java_Request_getProtocol() local
521 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getProtocol()
523 return (*env)->NewStringUTF(env, nxt_unit_sptr_get(&r->version)); in nxt_java_Request_getProtocol()
530 nxt_unit_request_t *r; in nxt_java_Request_getRemoteAddr() local
532 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getRemoteAddr()
534 return nxt_java_newString(env, nxt_unit_sptr_get(&r->remote), in nxt_java_Request_getRemoteAddr()
535 r->remote_length); in nxt_java_Request_getRemoteAddr()
543 nxt_unit_request_t *r; in nxt_java_Request_getRemoteHost() local
545 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getRemoteHost()
547 remote = nxt_unit_sptr_get(&r->remote); in nxt_java_Request_getRemoteHost()
548 colon = memchr(remote, ':', r->remote_length); in nxt_java_Request_getRemoteHost()
551 colon = remote + r->remote_length; in nxt_java_Request_getRemoteHost()
563 nxt_unit_request_t *r; in nxt_java_Request_getRemotePort() local
565 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getRemotePort()
567 remote = nxt_unit_sptr_get(&r->remote); in nxt_java_Request_getRemotePort()
568 colon = memchr(remote, ':', r->remote_length); in nxt_java_Request_getRemotePort()
574 tmp = remote[r->remote_length]; in nxt_java_Request_getRemotePort()
576 remote[r->remote_length] = '\0'; in nxt_java_Request_getRemotePort()
580 remote[r->remote_length] = tmp; in nxt_java_Request_getRemotePort()
589 nxt_unit_request_t *r; in nxt_java_Request_getScheme() local
591 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getScheme()
593 return (*env)->NewStringUTF(env, r->tls ? "https" : "http"); in nxt_java_Request_getScheme()
602 nxt_unit_request_t *r; in nxt_java_Request_getServerName() local
604 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getServerName()
606 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getServerName()
630 nxt_unit_request_t *r; in nxt_java_Request_getServerPort() local
632 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_getServerPort()
634 f = nxt_java_findHeader(r->fields, r->fields + r->fields_count, in nxt_java_Request_getServerPort()
663 nxt_unit_request_t *r; in nxt_java_Request_isSecure() local
665 r = nxt_jlong2ptr(req_ptr); in nxt_java_Request_isSecure()
667 return r->tls != 0; in nxt_java_Request_isSecure()