#26 API access

Öppen
öppnade 8 år sedan av bill-auger · 1 kommentarer
bill-auger kommenterad 8 år sedan

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 kommenterad 8 år sedan
Ägare

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
Logga in för att delta i denna konversation.
Ingen Etikett
bug
Ingen Milsten
Ingen förvärvare
1 Deltagare
Laddar...
Avbryt
Spara
Det finns inget innehåll än.