Is there a way to host a list using a web service in scheme/racket
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If in your question you meant a Scheme/Racket
list: Sure, you could make a RESTful API such thatPOST,GET,PUT,DELETEverbs modified alist. I suppose that could be a lite way to try various RESTful ideas. If you want to do this for real I recommend “RESTful Web Services”.See “Systems Programming in Racket” for how to make a simple HTTP server in Racket from scratch. In step 4, the tutorial is ignoring the request header and assuming the verb is
GET. However you could pay attention to the verb in the request header.You may be able to build up a lite HTTP server that meets your needs, this way. Or, after trying this, you may decide the full server provided in Racket is more suitable for your needs, and better appreciate what it’s doing for you. That is described in “Web Applications in Racket”