summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2021-09-23 05:04:29 +0300
committerEd Tanous <edtanous@google.com>2021-10-18 20:23:50 +0300
commitf79b7a502db253f6a862aa2cdf5308a7bf2b9070 (patch)
tree3ab9fcd35ae5477ac78cacd3cbacdce749ac260d /meson_options.txt
parent5edbe947bc474743763b34a89bacf973645fefab (diff)
downloadbmcweb-f79b7a502db253f6a862aa2cdf5308a7bf2b9070.tar.xz
Deduplicate url parsing code
In the current model, URLs get parsed twice, once to satisfy the authenticate method, and once again later to satisfy the handle() call. This commit deduplicates the parsing. This is wasteful, and as of the previous commit, unnecessary. Specifically, it moves the actual parsing into the request object, and adds a target() method to explicitly set a url. This deduplicates the code that was in http_connection, and centralizes it in request, where it should really belong. Tested: curl --insecure "https://192.168.7.2/redfish/v1" Returns the redfish v1 resource curl --insecure "https://192.168.7.2/redfish/v1/Systems" Returns 401 unauthorized curl --insecure --user root:0penBmc "https://192.168.7.2/redfish/v1/Systems" returns the SystemsCollection Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ie7ee2d9a9a51bf21c03793b35730e7a0ca82623a
Diffstat (limited to 'meson_options.txt')
0 files changed, 0 insertions, 0 deletions