User Tools

Site Tools


Sidebar

fio:http.server

Q. Is there any way to read data from stdin during POST requests in the http.server module? I want to send some data like $curl 'http://host:port/some/route' –data '[{“uuid”: “BLA-7f986e93-4d2d-1c64-a709-4d27b45c3257”, “name”: “test-unit”} ]' and process it in a Lua handler like this: json.decode(-stdin_data-). (2017)

A. You could use fio to work with files in non-blocking mode.

Comments

Enter your comment. Wiki syntax is allowed:
R J M A R
 
fio/http.server.txt · Last modified: 2018/05/25 22:03 by eabates

Real Time Web Analytics