annotate src/luan/modules/http/Http.luan @ 1259:e8020216dee7

add Luan.to_luan and fix multipart/form-data
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Sep 2018 17:58:40 -0600
parents e38f5869e9df
children 4b5b84853f6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
498
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
1 java()
693
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 629
diff changeset
2 local Luan = require "luan:Luan.luan"
508
9218f9cf45d3 various fixes
Franklin Schmidt <fschmidt@gmail.com>
parents: 504
diff changeset
3 local error = Luan.error
572
f1601a4ce1aa fix stack when calling meta-methods
Franklin Schmidt <fschmidt@gmail.com>
parents: 568
diff changeset
4 local ipairs = Luan.ipairs or error()
f1601a4ce1aa fix stack when calling meta-methods
Franklin Schmidt <fschmidt@gmail.com>
parents: 568
diff changeset
5 local pairs = Luan.pairs or error()
1152
21d157b153fe change http parameters interface
Franklin Schmidt <fschmidt@gmail.com>
parents: 1150
diff changeset
6 local type = Luan.type or error()
1259
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
7 local to_luan = Luan.to_luan or error()
693
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 629
diff changeset
8 local Io = require "luan:Io.luan"
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 629
diff changeset
9 local Html = require "luan:Html.luan"
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 629
diff changeset
10 local Table = require "luan:Table.luan"
580
1e69d9c21461 add Table.clear();
Franklin Schmidt <fschmidt@gmail.com>
parents: 572
diff changeset
11 local clear = Table.clear or error()
693
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 629
diff changeset
12 local Package = require "luan:Package.luan"
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 629
diff changeset
13 local String = require "luan:String.luan"
1166
7ef40e1923b7 add back Thread.global
Franklin Schmidt <fschmidt@gmail.com>
parents: 1165
diff changeset
14 local lower = String.lower or error()
583
1368ca798ccc add Http.uncache_site
Franklin Schmidt <fschmidt@gmail.com>
parents: 580
diff changeset
15 local matches = String.matches or error()
498
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
16 local IoLuan = require "java:luan.modules.IoLuan"
1259
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
17 local LuanJava = require "java:luan.Luan"
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
18 local Request = require "java:luan.webserver.Request"
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
19 local Response = require "java:luan.webserver.Response"
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
20 local ResponseOutputStream = require "java:luan.webserver.ResponseOutputStream"
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
21 local Status = require "java:luan.webserver.Status"
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
22 local OutputStreamWriter = require "java:java.io.OutputStreamWriter"
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
23 local HashMap = require "java:java.util.HashMap"
320
fed1893821bf remove global namespace
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 300
diff changeset
24
1152
21d157b153fe change http parameters interface
Franklin Schmidt <fschmidt@gmail.com>
parents: 1150
diff changeset
25
1088
bae2d0c2576c change module naming convention
Franklin Schmidt <fschmidt@gmail.com>
parents: 1082
diff changeset
26 local Http = {}
320
fed1893821bf remove global namespace
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 300
diff changeset
27
1259
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
28 local old_java_to_luan = Luan.java_to_luan or error()
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
29
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
30 local function java_to_luan(obj)
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
31 obj = old_java_to_luan(obj)
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
32 if type(obj)=="java" and obj.instanceof(Request.MultipartFile) then
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
33 return {
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
34 filename = obj.filename
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
35 content_type = obj.contentType
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
36 content = obj.content
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
37 }
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
38 end
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
39 return obj
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
40 end
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
41
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
42 function Http.new_request(java)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
43 local this = {}
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
44 Http.request = this
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
45 if java == nil then
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
46 this.method = "GET"
1237
275d1b52dbce add Request.scheme
Franklin Schmidt <fschmidt@gmail.com>
parents: 1226
diff changeset
47 this.scheme = "http"
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
48 this.headers = {}
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
49 this.parameters = {}
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
50 this.cookies = {}
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
51 else
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
52 this.java = java
1179
f9136432847e add request.raw_head
Franklin Schmidt <fschmidt@gmail.com>
parents: 1171
diff changeset
53 this.raw_head = java.rawHead or error()
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
54 this.method = java.method or error()
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
55 this.raw_path = java.rawPath or error()
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
56 this.path = java.path or error()
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
57 this.protocol = java.protocol or error()
1237
275d1b52dbce add Request.scheme
Franklin Schmidt <fschmidt@gmail.com>
parents: 1226
diff changeset
58 this.scheme = java.scheme or error()
1259
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
59 this.headers = to_luan(java.headers)
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
60 this.parameters = to_luan(java.parameters,java_to_luan)
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
61 this.cookies = to_luan(java.cookies)
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
62 end
497
55f9f74f1e55 Http.request is now pure luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
63
499
fa4af530697f add http/dump
Franklin Schmidt <fschmidt@gmail.com>
parents: 498
diff changeset
64 function this.url()
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
65 return this.scheme.."://"..this.headers["host"]..this.raw_path
497
55f9f74f1e55 Http.request is now pure luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
66 end
55f9f74f1e55 Http.request is now pure luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
67
55f9f74f1e55 Http.request is now pure luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
68 return this
55f9f74f1e55 Http.request is now pure luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
69 end
55f9f74f1e55 Http.request is now pure luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
70
503
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 500
diff changeset
71 local STATUS = {
1109
Franklin Schmidt <fschmidt@gmail.com>
parents: 1102
diff changeset
72 OK = 200
Franklin Schmidt <fschmidt@gmail.com>
parents: 1102
diff changeset
73 MOVED_PERMANENTLY = 301
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
74 FOUND = 302
498
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
75 -- add more as needed
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
76 }
1088
bae2d0c2576c change module naming convention
Franklin Schmidt <fschmidt@gmail.com>
parents: 1082
diff changeset
77 Http.STATUS = STATUS
498
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
78
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
79 function Http.new_response()
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
80 local this = {}
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
81 Http.response = this
498
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
82
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
83 function this.reset()
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
84 this.java = Response.new()
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
85 this.headers = {}
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
86 this.status = STATUS.OK
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
87 this.writer = nil
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
88 end
498
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
89
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
90 this.reset()
1153
1f4da56abd4f change http cookies interface
Franklin Schmidt <fschmidt@gmail.com>
parents: 1152
diff changeset
91
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
92 function this.send_redirect(location)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
93 this.status = STATUS.FOUND
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
94 this.headers["location"] = location
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
95 end
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
96
1161
Franklin Schmidt <fschmidt@gmail.com>
parents: 1160
diff changeset
97 function this.send_error(status,msg)
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
98 this.reset()
1161
Franklin Schmidt <fschmidt@gmail.com>
parents: 1160
diff changeset
99 this.status = status
Franklin Schmidt <fschmidt@gmail.com>
parents: 1160
diff changeset
100 if msg ~= nil then
1165
668f29bc52ea clean up content-type
Franklin Schmidt <fschmidt@gmail.com>
parents: 1164
diff changeset
101 this.headers["content-type"] = "text/plain; charset=utf-8"
1161
Franklin Schmidt <fschmidt@gmail.com>
parents: 1160
diff changeset
102 local writer = this.text_writer()
Franklin Schmidt <fschmidt@gmail.com>
parents: 1160
diff changeset
103 writer.write(msg)
Franklin Schmidt <fschmidt@gmail.com>
parents: 1160
diff changeset
104 end
Franklin Schmidt <fschmidt@gmail.com>
parents: 1160
diff changeset
105 end
Franklin Schmidt <fschmidt@gmail.com>
parents: 1160
diff changeset
106
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
107 function this.set_cookie(name,value,attributes)
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
108 attributes = attributes or {}
1213
d5d5d29d7592 fix cookie bug
Franklin Schmidt <fschmidt@gmail.com>
parents: 1179
diff changeset
109 attributes["Path"] = attributes["Path"] or "/"
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
110 local attrMap = HashMap.new()
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
111 for attr_name, attr_value in pairs(attributes) do
1164
1f9d34a6f308 remove assertions
Franklin Schmidt <fschmidt@gmail.com>
parents: 1163
diff changeset
112 type(attr_name)=="string" or "cookie attribute name must be string"
1f9d34a6f308 remove assertions
Franklin Schmidt <fschmidt@gmail.com>
parents: 1163
diff changeset
113 type(attr_value)=="string" or "cookie attribute value must be string"
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
114 attrMap.put(attr_name,attr_value)
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
115 end
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
116 this.java.setCookie(name,value,attrMap)
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
117 end
498
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
118
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
119 function this.set_persistent_cookie(name,value,attributes)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
120 attributes = attributes or {}
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
121 attributes["Max-Age"] = "10000000"
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
122 this.set_cookie(name,value,attributes)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
123 end
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
124
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
125 function this.remove_cookie(name,attributes)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
126 attributes = attributes or {}
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
127 attributes["Max-Age"] = "0"
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
128 this.set_cookie(name,"delete",attributes)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
129 end
568
aa17ad66a370 fix http response headers
Franklin Schmidt <fschmidt@gmail.com>
parents: 509
diff changeset
130
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
131 function this.text_writer()
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
132 this.writer and "writer already set"
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
133 this.writer = ResponseOutputStream.new(this.java)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
134 this.writer = OutputStreamWriter.new(this.writer)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
135 return IoLuan.textWriter(this.writer)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
136 end
500
ab9c2afefb47 add response.binary_writer
Franklin Schmidt <fschmidt@gmail.com>
parents: 499
diff changeset
137
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
138 function this.binary_writer()
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
139 this.writer and "writer already set"
1160
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
140 this.writer = ResponseOutputStream.new(this.java)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
141 return IoLuan.binaryWriter(this.writer)
4beabb087be6 add http/impl
Franklin Schmidt <fschmidt@gmail.com>
parents: 1159
diff changeset
142 end
580
1e69d9c21461 add Table.clear();
Franklin Schmidt <fschmidt@gmail.com>
parents: 572
diff changeset
143
498
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
144 return this
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
145 end
ee55be414a34 Http.response is now mostly luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 497
diff changeset
146
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
147 function Http.finish() -- called only from java
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
148 local response = Http.response or error()
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
149 local java = response.java or error()
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
150 java.status = Status.getStatus(response.status)
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
151 for name, value in pairs(response.headers) do
1164
1f9d34a6f308 remove assertions
Franklin Schmidt <fschmidt@gmail.com>
parents: 1163
diff changeset
152 type(name)=="string" or "header name must be string"
1166
7ef40e1923b7 add back Thread.global
Franklin Schmidt <fschmidt@gmail.com>
parents: 1165
diff changeset
153 name = lower(name)
1259
e8020216dee7 add Luan.to_luan and fix multipart/form-data
Franklin Schmidt <fschmidt@gmail.com>
parents: 1257
diff changeset
154 value = LuanJava.toJava(value)
1163
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
155 java.headers.put(name,value)
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
156 end
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
157 response.writer and response.writer.close()
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
158 return java
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
159 end
Franklin Schmidt <fschmidt@gmail.com>
parents: 1162
diff changeset
160
1088
bae2d0c2576c change module naming convention
Franklin Schmidt <fschmidt@gmail.com>
parents: 1082
diff changeset
161 return Http