web::http::uri generate_queue_uri(const web::http::uri& base_uri, const cloud_queue& queue) { if (base_uri.is_empty()) { return web::http::uri(); } web::http::uri_builder builder(base_uri); builder.append_path(queue.name(), /* do_encoding */ true); return builder.to_uri(); }
web::http::uri generate_queue_message_uri(const web::http::uri& base_uri, const cloud_queue& queue, const utility::string_t& message_id) { if (base_uri.is_empty()) { return web::http::uri(); } web::http::uri_builder builder(base_uri); builder.append_path(queue.name(), /* do_encoding */ true); builder.append_path(_XPLATSTR("messages")); builder.append_path(message_id, /* do_encoding */ true); return builder.to_uri(); }