Advanced URL parsing with a block-based callback API