#26 API access

Open
8 jaren geleden werd geopend door bill-auger · 1 opmerkingen

TODO: describe this feature better

this means serving text/plain, JSON, XML, or whatever to CLI clients and perhaps is applicable to the proposed email clients as well

regarding the WT library it took me a while to find this - it looks like this is handled by extending a custom response class - also seems to be the same class that handle file uploads

https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WResource.html#details

TODO: describe this feature better this means serving text/plain, JSON, XML, or whatever to CLI clients and perhaps is applicable to the proposed email clients as well regarding the WT library it took me a while to find this - it looks like this is handled by extending a custom response class - also seems to be the same class that handle file uploads https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WResource.html#details
bill-auger reageerde 8 jaren geleden
Eigenaar

the 'serve-raw' branch on my WT fork is now able to serve any of JSON, XML, and raw plain text - wget and curl are quite happy with the output

i expect no problem extending this to binaries and tarballs if need be

as noted above, this class handles uploads and appears to be SSE stream-able with optional continuations

there is one caveat in that the docs say something like "this feature currently only works with the wthttp server" - im not sure when "currently" was written but this seems to imply that it may not yet work with the FastCGI bridge

the ['serve-raw' branch on my WT fork](https://notabug.org/bill-auger/wt/src/serve-raw) is now able to serve any of JSON, XML, and raw plain text - wget and curl are quite happy with the output i expect no problem extending this to binaries and tarballs if need be as noted above, this class handles uploads and appears to be SSE stream-able with optional continuations there is one caveat in that the docs say something like "this feature currently only works with the wthttp server" - im not sure when "currently" was written but this seems to imply that it may not yet work with the FastCGI bridge
Sign in to join this conversation.
Geen mijlpaal
Geen verantwoordelijke
1 deelnemers
Laden...
Annuleren
Opslaan
Er is nog geen inhoud.