| 1841 | }; |
| 1842 | |
| 1843 | char * |
| 1844 | HTTPHdr::url_string_get(Arena *arena, int *length) |
| 1845 | { |
| 1846 | char *zret = nullptr; |
| 1847 | UrlPrintHack hack(this); |
| 1848 | |
| 1849 | if (hack.is_valid()) { |
| 1850 | // The use of a magic value for Arena to indicate the internal heap is |
| 1851 | // even uglier but it's less so than duplicating this entire method to |
| 1852 | // change that one thing. |
| 1853 | |
| 1854 | zret = (arena == USE_HDR_HEAP_MAGIC) ? m_url_cached.string_get_ref(length) : m_url_cached.string_get(arena, length); |
| 1855 | } |
| 1856 | return zret; |
| 1857 | } |
| 1858 | |
| 1859 | int |
| 1860 | HTTPHdr::url_print(char *buff, int length, int *offset, int *skip, unsigned normalization_flags) |
no test coverage detected