Lines Matching refs:p

37 static inline char *copy(char *p, const void *src, uint32_t len);
147 char *p; in greeting_app_request_handler() local
211 p = buf->free; in greeting_app_request_handler()
213 p = copy(p, REQUEST_DATA, nxt_length(REQUEST_DATA)); in greeting_app_request_handler()
215 p = copy(p, METHOD, nxt_length(METHOD)); in greeting_app_request_handler()
216 p = copy(p, nxt_unit_sptr_get(&r->method), r->method_length); in greeting_app_request_handler()
217 *p++ = '\n'; in greeting_app_request_handler()
219 p = copy(p, PROTOCOL, nxt_length(PROTOCOL)); in greeting_app_request_handler()
220 p = copy(p, nxt_unit_sptr_get(&r->version), r->version_length); in greeting_app_request_handler()
221 *p++ = '\n'; in greeting_app_request_handler()
223 p = copy(p, REMOTE_ADDR, nxt_length(REMOTE_ADDR)); in greeting_app_request_handler()
224 p = copy(p, nxt_unit_sptr_get(&r->remote), r->remote_length); in greeting_app_request_handler()
225 *p++ = '\n'; in greeting_app_request_handler()
227 p = copy(p, LOCAL_ADDR, nxt_length(LOCAL_ADDR)); in greeting_app_request_handler()
228 p = copy(p, nxt_unit_sptr_get(&r->local), r->local_length); in greeting_app_request_handler()
229 *p++ = '\n'; in greeting_app_request_handler()
231 p = copy(p, TARGET, nxt_length(TARGET)); in greeting_app_request_handler()
232 p = copy(p, nxt_unit_sptr_get(&r->target), r->target_length); in greeting_app_request_handler()
233 *p++ = '\n'; in greeting_app_request_handler()
235 p = copy(p, PATH, nxt_length(PATH)); in greeting_app_request_handler()
236 p = copy(p, nxt_unit_sptr_get(&r->path), r->path_length); in greeting_app_request_handler()
237 *p++ = '\n'; in greeting_app_request_handler()
240 p = copy(p, QUERY, nxt_length(QUERY)); in greeting_app_request_handler()
241 p = copy(p, nxt_unit_sptr_get(&r->query), r->query_length); in greeting_app_request_handler()
242 *p++ = '\n'; in greeting_app_request_handler()
245 p = copy(p, FIELDS, nxt_length(FIELDS)); in greeting_app_request_handler()
250 p = copy(p, FIELD_PAD, nxt_length(FIELD_PAD)); in greeting_app_request_handler()
251 p = copy(p, nxt_unit_sptr_get(&f->name), f->name_length); in greeting_app_request_handler()
252 p = copy(p, FIELD_SEP, nxt_length(FIELD_SEP)); in greeting_app_request_handler()
253 p = copy(p, nxt_unit_sptr_get(&f->value), f->value_length); in greeting_app_request_handler()
254 *p++ = '\n'; in greeting_app_request_handler()
258 p = copy(p, BODY, nxt_length(BODY)); in greeting_app_request_handler()
265 buf->free = p; in greeting_app_request_handler()
276 copy(char *p, const void *src, uint32_t len) in copy() argument
278 memcpy(p, src, len); in copy()
280 return p + len; in copy()