Permalink
Browse files

Adding some missing options

  • Loading branch information...
1 parent 26a6dd8 commit 493172efeb889ddebc9cde5729dd04b1abe7ddbb @michaelaird michaelaird committed Oct 9, 2012
Showing with 72 additions and 0 deletions.
  1. +72 −0 src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs
@@ -33,6 +33,18 @@ public sealed class jQueryAjaxOptions {
}
/// <summary>
+ /// Gets or sets the content type sent in the request header that tells the server what kind of response it will accept in return.
+ /// </summary>
+ [IntrinsicProperty]
+ public Dictionary Accepts {
+ get {
+ return false;
+ }
+ set {
+ }
+ }
+
+ /// <summary>
/// Gets or sets whether the request is async.
/// </summary>
[IntrinsicProperty]
@@ -82,6 +94,18 @@ public sealed class jQueryAjaxOptions {
}
/// <summary>
+ /// Gets or sets a map of string/regular-expression pairs that determine how jQuery will parse the response, given its content type.
+ /// </summary>
+ [IntrinsicProperty]
+ public Dictionary Contents {
+ get {
+ return false;
+ }
+ set {
+ }
+ }
+
+ /// <summary>
/// Gets or sets the content type of the data sent to the server.
/// </summary>
[IntrinsicProperty]
@@ -106,6 +130,30 @@ public sealed class jQueryAjaxOptions {
}
/// <summary>
+ /// Gets or sets a map of dataType-to-dataType converters.
+ /// </summary>
+ [IntrinsicProperty]
+ public Dictionary Converters {
+ get {
+ return false;
+ }
+ set {
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets if you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true
+ /// </summary>
+ [IntrinsicProperty]
+ public bool CrossDomain {
+ get {
+ return false;
+ }
+ set {
+ }
+ }
+
+ /// <summary>
/// Gets or sets the data to be sent to the server.
/// </summary>
[IntrinsicProperty]
@@ -154,6 +202,18 @@ public sealed class jQueryAjaxOptions {
}
/// <summary>
+ /// Gets or sets if a map of additional header key/value pairs to send along with the request.
+ /// </summary>
+ [IntrinsicProperty]
+ public Dictionary Headers {
+ get {
+ return false;
+ }
+ set {
+ }
+ }
+
+ /// <summary>
/// Gets or sets whether the request is successful only if its been modified since
/// the last request.
/// </summary>
@@ -252,6 +312,18 @@ public sealed class jQueryAjaxOptions {
}
/// <summary>
+ /// Gets or sets a map of numeric HTTP codes and functions to be called when the response has the corresponding code.
+ /// </summary>
+ [IntrinsicProperty]
+ public Dictionary StatusCode {
+ get {
+ return null;
+ }
+ set {
+ }
+ }
+
+ /// <summary>
/// Gets or sets the function to invoke upon successful completion of the request.
/// </summary>
[IntrinsicProperty]

0 comments on commit 493172e

Please sign in to comment.