Class JsonpFormatter

Handles JsonP requests when requests are fired with text/javascript

System.Object
  System.Net.Http.Formatting.MediaTypeFormatter
    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter
      System.Net.Http.Formatting.JsonMediaTypeFormatter
        Westwind.Web.WebApi.JsonpFormatter
public class JsonpFormatter : JsonMediaTypeFormatter

Class Members

MemberDescription

Constructor

CanWriteType

public virtual bool CanWriteType(Type type)

GetPerRequestFormatterInstance

Override this method to capture the Request object

public virtual MediaTypeFormatter GetPerRequestFormatterInstance(Type type,     HttpRequestMessage request,     MediaTypeHeaderValue mediaType)

WriteToStreamAsync

public virtual Task WriteToStreamAsync(Type type,     object value,     Stream stream,     HttpContent content,     TransportContext transportContext)

JsonpParameterName

Name of the query string parameter to look for the jsonp function name

Requirements

Namespace: Westwind.Web.WebApi
Assembly: westwind.web.webapi.dll

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic