1 ;;; hello-world.el --- simple hello world server using Emacs Web Server
3 ;; Copyright (C) 2013 Eric Schulte <schulte.eric@gmail.com>
5 ;; Author: Eric Schulte <schulte.eric@gmail.com>
6 ;; Keywords: hello http
7 ;; License: GPLV3 (see the COPYING file in this directory)
10 (require 'emacs-web-server)
14 (lambda (proc request)
15 (ews-response-header proc 200 '("Content-type" . "text/plain"))
16 (process-send-string proc "hello world"))))