summaryrefslogtreecommitdiff
path: root/lib/http
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-02 22:33:07 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-02 22:33:07 -0700
commit50de5a0737e256b52262f35d82cdc5985520e64f (patch)
tree2474001acfe8e711f293a6d883651bba6c6ee44a /lib/http
parenta77a83ee673ab4bef38e336345f3196c814bdcf7 (diff)
downloadmc-50de5a0737e256b52262f35d82cdc5985520e64f.tar.gz
Remove dead crap.
Diffstat (limited to 'lib/http')
-rw-r--r--lib/http/bld.sub4
-rw-r--r--lib/http/types.myr16
2 files changed, 3 insertions, 17 deletions
diff --git a/lib/http/bld.sub b/lib/http/bld.sub
index 3c7cb2d..fdb50b1 100644
--- a/lib/http/bld.sub
+++ b/lib/http/bld.sub
@@ -1,10 +1,10 @@
-bin h =
+bin h {noinst}=
h.myr
lib http
;;
-bin srvdot =
+bin srvdot {noinst}=
srvdot.myr
lib http
diff --git a/lib/http/types.myr b/lib/http/types.myr
index 40bfcf6..93fa317 100644
--- a/lib/http/types.myr
+++ b/lib/http/types.myr
@@ -4,7 +4,7 @@ use bio
pkg http =
type status = int
- const Ok = 200
+ const Ok : status = 200
type session = struct
f : bio.file#
@@ -21,20 +21,6 @@ pkg http =
quit : bool
;;
- type router = struct
- paths : route[:]
- ;;
-
- type ctx = struct
- fd : byte[:]
- ;;
-
- type route = struct
- path : byte[:]
- render : (ctx : ctx# -> status)
- ;;
-
-
type url = struct
schema : schema
port : uint16