WebApiContrib.Formatting.Jsonp icon indicating copy to clipboard operation
WebApiContrib.Formatting.Jsonp copied to clipboard

A JSONP Formatter for ASP.NET Web API

Results 8 WebApiContrib.Formatting.Jsonp issues
Sort by recently updated
recently updated
newest added

Is there any reason not to allow a callback to contain `[` and `]`? I an JS plugin (CkEditor) which names callbacks like: `CKEDITOR._.jsonpCallbacks[197]` and this fails with the current...

I have the following in my Web API action: ``` [HttpGet] public HttpResponseMessage GetProducts(string id) { var returnData = data; string callback = ControllerContext.Request.GetQueryNameValuePairs().Where(kv => kv.Key == "callback").Single().Value; return Request.CreateResponse(HttpStatusCode.OK,...

bug

It appears that WebApi added an overload to WriteToStreamAsync that accepts a CancellationToken parameter. JsonpMediaTypeFormatter does not implement this overload, so the following error is thrown at runtime when attempting...

Your code samples and documentation doesn't show any example of how to combine normal and error responses within a single method. So I had to ask a question here: [Error...

Line 104: Modification to process non-jsonp requests within the same context. i.e. POST, PUT, PATCH, DELETE, etc. Currently, it will throw the InvalidOperationException if a callback is not present, thus...

Hi, If I have an ODATA (EntitySetController) endpoint that I want to switch between JSONP and JSON via ACCEPT header (application/json-p or application/odata), this formatter will throw an exception complaining...