davidmoreno / onion

C library to create simple HTTP servers and Web Applications.
http://www.coralbits.com/libonion/
Other
2.01k stars 250 forks source link

adding onion_request_get_method_name #291

Closed bstarynk closed 3 years ago

bstarynk commented 3 years ago

In some projects (including bismon and perhaps later RefPerSys) it could be useful to get a literal string giving the method name (e.g. "GET" or "POST" etc...) for a given Onion web-request.

This patch declares and defines a new onion_request_get_method_name function. The API of LibOnion changes compatibly

If accepted, a future patch might be proposed to add a C++ binding to that function (for the RefPerSys project).

Regards from Basile Starynkevitch (near Paris, in France) - you may email me to basile@starynkevitch.net