Lines Matching refs:uri
975 uri_desc_t *uri = kmem_cache_alloc(nl7c_uri_kmc, KM_SLEEP); in http_mkresponse() local
994 REF_INIT(uri, 1, nl7c_uri_inactive, nl7c_uri_kmc); in http_mkresponse()
995 uri->hash = URI_TEMP; in http_mkresponse()
996 uri->tail = NULL; in http_mkresponse()
997 uri->scheme = NULL; in http_mkresponse()
998 uri->reqmp = NULL; in http_mkresponse()
999 uri->count = 0; in http_mkresponse()
1000 cv_init(&uri->waiting, NULL, CV_DEFAULT, NULL); in http_mkresponse()
1001 mutex_init(&uri->proclock, NULL, MUTEX_DEFAULT, NULL); in http_mkresponse()
1003 URI_RD_ADD(uri, rdp, sz, -1); in http_mkresponse()
1092 uri->eoh = cp; in http_mkresponse()
1096 return (uri); in http_mkresponse()
1106 kmem_cache_free(nl7c_uri_kmc, uri); in http_mkresponse()
1117 uri_desc_t *uri; in nl7c_http_cond() local
1128 uri = http_mkresponse(req, res, http_resp_304, in nl7c_http_cond()
1130 if (uri != NULL) { in nl7c_http_cond()
1133 return (uri); in nl7c_http_cond()
1145 uri = http_mkresponse(req, res, http_resp_412, in nl7c_http_cond()
1147 if (uri != NULL) { in nl7c_http_cond()
1150 return (uri); in nl7c_http_cond()
1187 nl7c_http_request(char **cpp, char *ep, uri_desc_t *uri, struct sonode *so) in nl7c_http_request() argument
1206 uri->scheme = (void *)http; in nl7c_http_request()
1207 uri->auth.cp = NULL; in nl7c_http_request()
1208 uri->auth.ep = NULL; in nl7c_http_request()
1209 uri->resplen = URI_LEN_NOVALUE; in nl7c_http_request()
1210 uri->respclen = URI_LEN_NOVALUE; in nl7c_http_request()
1211 uri->eoh = NULL; in nl7c_http_request()
1212 uri->nocache = B_FALSE; in nl7c_http_request()
1213 uri->conditional = B_FALSE; in nl7c_http_request()
1302 match = ttree_line_parse(req_tree, &cp, &ep, &hp, &uri->hvalue); in nl7c_http_request()
1370 uri->auth.cp = hp; in nl7c_http_request()
1371 uri->auth.ep = ep; in nl7c_http_request()
1378 uri->conditional = B_TRUE; in nl7c_http_request()
1414 uri->nocache = B_TRUE; in nl7c_http_request()
1465 nl7c_http_response(char **cpp, char *ep, uri_desc_t *uri, struct sonode *so) in nl7c_http_response() argument
1468 http_t *http = uri->scheme; in nl7c_http_response()
1484 if (uri->respclen != URI_LEN_NOVALUE) { in nl7c_http_response()
1564 uri->resplen = 0; in nl7c_http_response()
1569 uri->resplen = 0; in nl7c_http_response()
1579 uri->resplen = 0; in nl7c_http_response()
1667 uri->respclen = 0; in nl7c_http_response()
1668 uri->resplen = 0; in nl7c_http_response()
1673 if (uri->respclen == URI_LEN_NOVALUE) in nl7c_http_response()
1674 uri->resplen = n; in nl7c_http_response()
1732 uri->eoh = scp; in nl7c_http_response()
1746 if (uri->respclen == URI_LEN_NOVALUE) { in nl7c_http_response()
1747 if (uri->resplen == URI_LEN_NOVALUE) { in nl7c_http_response()
1753 uri->resplen += http->headlen; in nl7c_http_response()
1784 uri->nocache = B_TRUE; in nl7c_http_response()
1785 if (uri->respclen != URI_LEN_NOVALUE) { in nl7c_http_response()
1800 uri->expire = ddi_get_lbolt() + SEC_TO_TICK(http->expire - in nl7c_http_response()
1804 uri->expire = ddi_get_lbolt() + SEC_TO_TICK(nl7c_uri_ttl); in nl7c_http_response()
1816 while (uri->respclen != URI_LEN_NOVALUE && cp < sep) { in nl7c_http_response()
1817 if (uri->respclen == URI_LEN_CONSUMED) { in nl7c_http_response()
1827 uri->respclen = 0; in nl7c_http_response()
1829 if (uri->respclen == 0) { in nl7c_http_response()
1846 uri->respclen = n; in nl7c_http_response()
1857 uri->respclen = URI_LEN_NOVALUE; in nl7c_http_response()
1861 if (uri->respclen > 0) { in nl7c_http_response()
1865 if (sz > uri->respclen) in nl7c_http_response()
1866 sz = uri->respclen; in nl7c_http_response()
1867 uri->respclen -= sz; in nl7c_http_response()
1869 if (uri->respclen == 0) { in nl7c_http_response()
1872 uri->respclen = URI_LEN_CONSUMED; in nl7c_http_response()
1886 uri->resplen += (cp - scp); in nl7c_http_response()
1901 uri->resplen += (cp - scp); in nl7c_http_response()