Beispiel #1
0
 /// <summary>Gets the content type.</summary>
 public static InternetMediaType GetContentType(this HttpResponseBase reponse)
 {
     Guard.NotNull(reponse, "reponse");
     return(InternetMediaType.Parse(reponse.ContentType));
 }
Beispiel #2
0
 /// <summary>Gets the content type.</summary>
 public static InternetMediaType GetContentType(this HttpRequestBase request)
 {
     Guard.NotNull(request, "request");
     return(InternetMediaType.Parse(request.ContentType));
 }