Mercurial > prosody-hg
comparison net/http.lua @ 5464:712dbe1a0146
net.http: Switch from util.httpstream to net.http.parser, introduces small but backwards-incompatible API changes - see http://prosody.im/doc/developers/http
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 11 Apr 2013 20:24:37 +0100 |
| parents | 84162b81c863 |
| children | e3b9dc9dd940 |
comparison
equal
deleted
inserted
replaced
| 5463:111953bfe767 | 5464:712dbe1a0146 |
|---|---|
| 7 -- | 7 -- |
| 8 | 8 |
| 9 local socket = require "socket" | 9 local socket = require "socket" |
| 10 local b64 = require "util.encodings".base64.encode; | 10 local b64 = require "util.encodings".base64.encode; |
| 11 local url = require "socket.url" | 11 local url = require "socket.url" |
| 12 local httpstream_new = require "util.httpstream".new; | 12 local httpstream_new = require "net.http.parser".new; |
| 13 local util_http = require "util.http"; | 13 local util_http = require "util.http"; |
| 14 | 14 |
| 15 local ssl_available = pcall(require, "ssl"); | 15 local ssl_available = pcall(require, "ssl"); |
| 16 | 16 |
| 17 local server = require "net.server" | 17 local server = require "net.server" |
