Lines Matching full:url

24 #include <boost/url/param.hpp>
25 #include <boost/url/parse.hpp>
26 #include <boost/url/segments_ref.hpp>
27 #include <boost/url/segments_view.hpp>
28 #include <boost/url/url.hpp>
29 #include <boost/url/url_view.hpp>
95 boost::system::result<boost::urls::url> parsedUrl = in searchCollectionsArray()
140 std::string_view url = segments.buffer(); in searchCollectionsArray() local
141 const auto* it = std::ranges::lower_bound(topCollections, url); in searchCollectionsArray()
149 boost::urls::url collectionUrl(*it); in searchCollectionsArray()
240 boost::urls::url url("/"); in addPrefixToStringItem() local
258 url.buffer())) in addPrefixToStringItem()
262 url.segments().push_back(collectionItem); in addPrefixToStringItem()
268 url.segments().push_back(*it); in addPrefixToStringItem()
271 // Finish constructing the URL here (if needed) to avoid additional checks in addPrefixToStringItem()
274 url.segments().push_back(*it); in addPrefixToStringItem()
279 url.segments().insert(url.segments().begin(), {"redfish", "v1"}); in addPrefixToStringItem()
280 strValue = url.buffer(); in addPrefixToStringItem()
419 boost::urls::url url; member
432 const std::unordered_map<std::string, boost::urls::url>& satelliteInfo) in constructorCallback()
442 std::unordered_map<std::string, boost::urls::url>& satelliteInfo) in findSatelliteConfigs()
473 std::unordered_map<std::string, boost::urls::url>& satelliteInfo) in addSatelliteConfig()
475 boost::urls::url url; in addSatelliteConfig() local
489 url.set_host(*propVal); in addSatelliteConfig()
506 url.set_port(std::to_string(static_cast<uint16_t>(*propVal))); in addSatelliteConfig()
528 url.set_scheme("http"); in addSatelliteConfig()
550 if (url.host().empty()) in addSatelliteConfig()
556 if (!url.has_port()) in addSatelliteConfig()
562 if (!url.has_scheme()) in addSatelliteConfig()
569 auto result = satelliteInfo.insert_or_assign(prefix, std::move(url)); in addSatelliteConfig()
626 boost::urls::url& urlNew = localReq->url(); in startAggregation()
662 const std::unordered_map<std::string, boost::urls::url>& satelliteInfo, in findSatellite()
683 std::string nameStr = req.url().segments().back(); in findSatellite()
693 const std::unordered_map<std::string, boost::urls::url>& satelliteInfo) in aggregateAndHandle()
709 std::string nameStr = sharedReq->url().segments().back(); in aggregateAndHandle()
744 const boost::urls::segments_view urlSegments = thisReq.url().segments(); in aggregateAndHandle()
745 boost::urls::url currentUrl("/"); in aggregateAndHandle()
777 const std::unordered_map<std::string, boost::urls::url>& satelliteInfo) in forwardRequest()
789 boost::urls::url targetURI(thisReq.target()); in forwardRequest()
790 std::string path = thisReq.url().path(); in forwardRequest()
806 boost::urls::url url(sat->second); in forwardRequest() local
807 url.set_path(path); in forwardRequest()
810 url.set_query(targetURI.query()); in forwardRequest()
817 client.sendDataWithCallback(std::move(data), url, in forwardRequest()
826 const std::unordered_map<std::string, boost::urls::url>& satelliteInfo) in forwardCollectionRequests()
833 boost::urls::url url(sat.second); in forwardCollectionRequests() local
834 url.set_path(thisReq.url().path()); in forwardCollectionRequests()
835 if (thisReq.url().has_query()) in forwardCollectionRequests()
837 url.set_query(thisReq.url().query()); in forwardCollectionRequests()
845 client.sendDataWithCallback(std::move(data), url, in forwardCollectionRequests()
856 const std::unordered_map<std::string, boost::urls::url>& satelliteInfo) in forwardContainsSubordinateRequests()
867 boost::urls::url url(sat.second); in forwardContainsSubordinateRequests() local
868 url.set_path(thisReq.url().path()); in forwardContainsSubordinateRequests()
876 client.sendDataWithCallback(std::move(data), url, in forwardContainsSubordinateRequests()
935 void(const std::unordered_map<std::string, boost::urls::url>&)> in getSatelliteConfigs()
941 std::unordered_map<std::string, boost::urls::url> satelliteInfo; in getSatelliteConfigs()
944 satelliteInfo.emplace(prefix, source.url); in getSatelliteConfigs()
961 // Maps a chosen alias representing a satellite BMC to a url in getSatelliteConfigs()
1315 boost::urls::url_view url = thisReq.url(); in beginAggregation() local
1321 if (crow::utility::readUrlSegments(url, "redfish", "v1", "JsonSchemas", in beginAggregation()
1329 if (!crow::utility::readUrlSegments(url, "redfish", "v1", in beginAggregation()
1339 const boost::urls::segments_view urlSegments = url.segments(); in beginAggregation()
1340 boost::urls::url currentUrl("/"); in beginAggregation()
1396 if (searchCollectionsArray(url.path(), SearchType::ContainsSubordinate)) in beginAggregation()
1403 BMCWEB_LOG_DEBUG("Aggregation not required for {}", url.buffer()); in beginAggregation()
1407 // Check if the given URL segment matches with any satellite prefix