aboutsummaryrefslogtreecommitdiff
path: root/http_response.go
AgeCommit message (Collapse)Author
2023-11-16all: refactoring, rename HttpResponse to ExecResponseShulhan
2023-11-16all: refactoring, rename Request to ExecRequestShulhan
2023-10-30all: return the error as reponse in HTTP API executeShulhan
Previously, when the command execution failed, we check the error and return it as HTTP status code 500. In this way, user cannot view the log and actual error. In this changes, if the command failed, we store the error in separate field "Error" and return to the caller with HTTP status code 200.
2023-10-26all: use "mlog.MultiLogger" to log Request output and errorShulhan
By using "mlog.MultiLogger" every output or error can be written to stdout/stderr and additional log writer that can collect both of them, buffered and returned to the caller. This changes simplify the HttpResponse to use only single output that combine both stdout and stderr.
2022-06-20all: reformat all go files using the next gofmtShulhan
2022-03-14all: change the awwan software license to GPL 3.0 or laterShulhan
See https://kilabit.info/journal/2022/gpl for more information.
2021-08-22all: implement serve commandShulhan
The serve comman will run a HTTP server that provide web-user interface to edit and execute script. Currently, the web-user interface provide the following features, * Browsing the workspace * Running the script on local or remote