asp.net web api - Serving data with "transfer-encoding: chunked" on an ApiController in C#' WebAPI -
i need serve chunked transfer encoding data using apicontroller. because not have access httpcontext or httprequest, i'm bit lost write response , flush it.
the setup looks like:
public class mycontroller : apicontroller { [route("testing")] [httpget] public string get() { ... return <response object ot httpresponsemessage } } i guess might using wrong base classes/framework/concept? much!
you do have access context , request. need access response though:
public string get() { actioncontext.response.headers.transferencodingchunked = true; // ... }
Comments
Post a Comment