[Cuis-dev] WebClient issues
Mark Volkmann
r.mark.volkmann at gmail.com
Sun Sep 29 07:41:18 PDT 2024
I've been digging into the WebClient package which can be used to implement
HTTP servers in addition to sending HTTP requests. It has these three
shortcomings:
1) It doesn't support paths containing path parameters. Request matching is
done through Dictionary lookups and doesn't work when there are
path parameters. For example, you can define a route for "GET /dog", but
you cannot define a route for "PUT /dog/:id" to update a dog with a given
id.
2) It doesn't support query parameters. For example, in a request like "GET
/car?size=small&color=yellow", there is no method that will return a
DIctionary containing the query parameters size and color.
3) It doesn't support PATCH requests. These are used to update a subset of
the properties of a given resource, unlike PUT requests which update all
the properties.
I can fix these shortcomings, but before I do that I want to verify whether
there would be interest in possibly merging my changes. If not then I can
just create my own fork of that package.
--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240929/60bc94ae/attachment.htm>
More information about the Cuis-dev
mailing list