[Cuis-dev] WebClient issues

Mariano Montone marianomontone at gmail.com
Tue Oct 1 17:21:12 PDT 2024


Can't you implement as a subclass and/or separate package (that depends on
webclient package)? I had that at some point.

El dom, 29 de sept de 2024, 11:41, Mark Volkmann via Cuis-dev <
cuis-dev at lists.cuis.st> escribió:

> 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.
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241001/302bf0af/attachment.htm>


More information about the Cuis-dev mailing list