#26 API access

Відкрити
8 роки тому відкрито bill-auger · 1 коментарів
bill-auger відкоментовано 8 роки тому

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 відкоментовано 8 роки тому
Власник

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
Підпишіться щоб приєднатися до обговорення.
Без Мітки
bug
Етап відсутній
Немає відповідального
1 учасників
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.