Skip to content

Commit

Permalink
Adding some missing options
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelaird committed Oct 9, 2012
1 parent 26a6dd8 commit 493172e
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs
Expand Up @@ -32,6 +32,18 @@ public sealed class jQueryAjaxOptions {
public jQueryAjaxOptions(params object[] nameValuePairs) {
}

/// <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>
Expand Down Expand Up @@ -81,6 +93,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>
Expand All @@ -105,6 +129,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>
Expand Down Expand Up @@ -153,6 +201,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.
Expand Down Expand Up @@ -251,6 +311,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>
Expand Down

0 comments on commit 493172e

Please sign in to comment.