Mercurial Hosting > luan
comparison src/luan/modules/Boot.luan @ 1754:d179810c6148
add url get_content_type
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 04 Feb 2023 22:53:05 -0700 |
parents | 2f3a8f16f583 |
children | 78cedcd6e1a4 |
comparison
equal
deleted
inserted
replaced
1753:83780735ad9c | 1754:d179810c6148 |
---|---|
159 function this.get_response_message() | 159 function this.get_response_message() |
160 check() | 160 check() |
161 return io.httpCon.getResponseMessage() | 161 return io.httpCon.getResponseMessage() |
162 end | 162 end |
163 | 163 |
164 function this.get_content_type() | |
165 check() | |
166 return io.httpCon.getContentType() | |
167 end | |
168 | |
164 return this | 169 return this |
165 end | 170 end |
166 | 171 |
167 local function url(path,options) | 172 local function url(path,options) |
168 return new_LuanUrl( LuanUrl.new(URL.new(path),options) ) | 173 return new_LuanUrl( LuanUrl.new(URL.new(path),options) ) |