This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server): Implement microhttpd framework (#241)
* feat(server): Implement server core functions with microhttpd * feat(server): Implement signal handler to terminate TA - Add signal handler for SIGINT and SIGTERM - Add logger when error occurred, starting and destroying TA * feat(server): Implement URL parser * Match request URL with regular expression * Parse parameter to use with strtok * feat(server): Implement generate_address API callback function * feat(server): Implement find_txn_by_tag API callback function * feat(server): Implement find_txn_obj_by_tag API callback function * feat(server): Implement get_txn_obj API callback function * feat(server): Implement get_tips_pair API callback function * feat(server): Implement get_tips API callback function * feat(server): Implement send_transfer API callback function * feat(server): Implement recv_mam_msg API callback function * feat(server): Implement send_mam_msg API callback function * feat(server): Implement invalid path handling callback function * feat(server): Implement OPTIONS request handling callback function * feat(server): Implement send_trytes API callback function * fix(server): Rename POST and OPTIONS flag * fix: Refactor codelines to meet coding style * feat(server): Implement req / res log message * fix(server): Fix wrong url length in ta_get_url_parameter * fix(api): Update find txn related apis (#237) * fix(server): Check request body in POST api callback functions (#239) If the GET request has the same url with the POST apis, it should return a method_not_allowed response. Thus we should check if body is empty or not in the callback functions before execution. * fix(server): Modify error code switch case in set_response_content (#240)
- Loading branch information