I am trying to create a simple api using the httpuv package. The documentation says that you can use the same definition of Rook. When using the Rook package, you can simply use:
req$POST()
I was not able to figure out how to manage simple HTTP POST messages and receive their body.
Any clues?
Finally, I started to work. I found the answer lying somewhere in the opencpu package.
Just read the POST body stream using:
input <- req[["rook.input"]];
postdata <- input$read_lines();
Source: https://habr.com/ru/post/1541342/More articles:UIImage scaling with UIIImagePicker CGAffineTransform and Saving to Parse SDK - iosCan a simple injector register multiple instances of the same type using different constructor parameters? - c #WebGL Shared Resources Web Workers - google-chromeGTiff mask with shapefile in python with gdal, ogr etc. - pythonDid Android widgets somehow exceed the binder transaction limit? - androidAdding to HDFStore fails with “cannot match existing table structure” - pythonHow to get compiler warnings when creating a Jenkins plugin - pluginsSetting get / set property in memoization decorator class in python - pythonImplement angular js service / factory in jasmine - javascriptDisable Android Studios Bad Tip? - androidAll Articles