jonataslaw / get_server

A backend server that makes it possible to program with Flutter syntax and reuse existing code
Apache License 2.0
476 stars 42 forks source link

access BuildContext.response._response #61

Open erlangzhang opened 3 years ago

erlangzhang commented 3 years ago

cann't access BuildContext.response._response, i need to return stream to client

odunboye commented 3 years ago

Could you show an example?

erlangzhang commented 3 years ago

i want't to proxy client http request to another server, and use _response to return response stream response to client. c -> serverA[get_server] ----> serverB ----> serverA -----> c i use get_server to setup https server, and i want to proxy a http request to remote server,then i use http to send a request to serverB, i don't care what the response's content, i just want to send the strem data back to client