comparison http/src/luan/modules/http/Http.luan @ 568:aa17ad66a370 0.11

fix http response headers
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 07 Jul 2015 19:32:34 -0600
parents e3b0846dc2ef
children f1601a4ce1aa
comparison
equal deleted inserted replaced
567:6c00b8a59240 568:aa17ad66a370
100 100
101 function this.remove_cookie(name,domain) 101 function this.remove_cookie(name,domain)
102 HttpServicer.removeCookie(M.request.java,this.java,name,domain) 102 HttpServicer.removeCookie(M.request.java,this.java,name,domain)
103 end 103 end
104 104
105 function this.set()
106 HttpServicer.setResponse(this,this.java)
107 end
108
105 function this.text_writer() 109 function this.text_writer()
110 this.set()
106 return IoLuan.textWriter(this.java.getWriter()) 111 return IoLuan.textWriter(this.java.getWriter())
107 end 112 end
108 113
109 function this.binary_writer() 114 function this.binary_writer()
115 this.set()
110 return IoLuan.binaryWriter(this.java.getOutputStream()) 116 return IoLuan.binaryWriter(this.java.getOutputStream())
111 end 117 end
112 end 118 end
113 return this 119 return this
114 end 120 end