aiohttp icon indicating copy to clipboard operation
aiohttp copied to clipboard

aiohttp.web.DynamicResource._match could be a very useful public method..

Open zokrezyl opened this issue 6 years ago • 3 comments

I use the method in a custom url decoding piece of code. Why is it marked as privet with underscore?

zokrezyl avatar Jul 22 '19 14:07 zokrezyl

What do you mean by "custom url decoding"?

asvetlov avatar Jul 22 '19 20:07 asvetlov

Tried to keep my description short. Important is that the _match method could be useful as standalone method. I am using it in the following use-case:

-> I have a legacy system that is providing a swagger API description file that contains the endpoint definitions in form from /api/foo/{bar}/detail and the body DTO's that must be provided with the calls to these endpoints -> The same system is providing as results of the calls to the endpoints something like /api/foo/a_bar/detail and I am matching this url against endpoints listed in the swagger description and for this purpose the _match method was perfect match :)

zokrezyl avatar Jul 24 '19 11:07 zokrezyl

This could do with some code example of how you're using it.

Dreamsorcerer avatar Aug 16 '24 18:08 Dreamsorcerer