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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -