diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/library/lux/world/net/http.lux | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/stdlib/source/library/lux/world/net/http.lux b/stdlib/source/library/lux/world/net/http.lux index 15044efec..3c95a1c03 100644 --- a/stdlib/source/library/lux/world/net/http.lux +++ b/stdlib/source/library/lux/world/net/http.lux @@ -10,7 +10,8 @@ [/ [version (.only Version)]] [// (.only Address) - [uri (.only URI)] + [uri (.only URI) + [scheme (.only Scheme)]] [// ["[0]" environment ["[1]" \\parser (.only Environment)]]]]) @@ -41,13 +42,8 @@ (-> Headers Headers)) (type .public (Body !) - (-> (Maybe Nat) (! (Try [Nat Binary])))) - -... https://en.wikipedia.org/wiki/List_of_URI_schemes -(type .public Scheme - (Variant - {#HTTP} - {#HTTPS})) + (-> (Maybe Nat) + (! (Try [Nat Binary])))) (type .public Identification (Record @@ -76,4 +72,5 @@ [Status (Message !)]) (type .public (Server !) - (-> (Request !) (! (Response !)))) + (-> (Request !) + (! (Response !)))) |