Lines Matching refs:o
35 int http_response_buffer_append_authority(request_st * const r, buffer * const o) { in http_response_buffer_append_authority() argument
37 buffer_append_string_buffer(o, &r->uri.authority); in http_response_buffer_append_authority()
58 buffer_append_string_len(o, lhost, lhost_len); in http_response_buffer_append_authority()
61 size_t olen = buffer_clen(o); in http_response_buffer_append_authority()
62 if (0 == sock_addr_nameinfo_append_buffer(o, &our_addr, r->conf.errh)) { in http_response_buffer_append_authority()
63 lhost_len = buffer_clen(o) - olen; in http_response_buffer_append_authority()
65 memcpy(lhost, o->ptr+olen, lhost_len+1); /*(+1 for '\0')*/ in http_response_buffer_append_authority()
74 buffer_append_string_len(o, lhost, lhost_len); in http_response_buffer_append_authority()
78 buffer_append_string_buffer(o, r->server_name); in http_response_buffer_append_authority()
81 if (0 != sock_addr_nameinfo_append_buffer(o, &our_addr, r->conf.errh)) { in http_response_buffer_append_authority()
94 buffer_append_char(o, ':'); in http_response_buffer_append_authority()
95 buffer_append_int(o, listen_port); in http_response_buffer_append_authority()
103 buffer *o = r->tmp_buf; in http_response_redirect_to_directory() local
104 buffer_clear(o); in http_response_redirect_to_directory()
107 buffer_append_str2(o, BUF_PTR_LEN(&r->uri.scheme), in http_response_redirect_to_directory()
109 if (0 != http_response_buffer_append_authority(r, o)) { in http_response_redirect_to_directory()
124 buffer_copy_buffer(vb, o); in http_response_redirect_to_directory()