@@ -52,7 +52,7 @@ public virtual IHttpResponse Patch(string url, IHttpPostOptions options) {
5252 /// <param name="url">The base URL of the request (no query string).</param>
5353 /// <param name="queryString">The query string.</param>
5454 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
55- public virtual IHttpResponse Patch ( string url , IHttpQueryString queryString ) {
55+ public virtual IHttpResponse Patch ( string url , IHttpQueryString ? queryString ) {
5656 if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
5757 return GetResponse ( HttpRequest . Patch ( url , queryString ) ) ;
5858 }
@@ -63,7 +63,7 @@ public virtual IHttpResponse Patch(string url, IHttpQueryString queryString) {
6363 /// <param name="url">The base URL of the request (no query string).</param>
6464 /// <param name="postData">The POST data.</param>
6565 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
66- public virtual IHttpResponse Patch ( string url , IHttpPostData postData ) {
66+ public virtual IHttpResponse Patch ( string url , IHttpPostData ? postData ) {
6767 if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
6868 return GetResponse ( HttpRequest . Patch ( url , postData ) ) ;
6969 }
@@ -75,7 +75,7 @@ public virtual IHttpResponse Patch(string url, IHttpPostData postData) {
7575 /// <param name="queryString">The query string of the request.</param>
7676 /// <param name="postData">The body of the request.</param>
7777 /// <returns>An instance of <see cref="IHttpResponse"/> representing the response.</returns>
78- public virtual IHttpResponse Patch ( string url , IHttpQueryString queryString , IHttpPostData postData ) {
78+ public virtual IHttpResponse Patch ( string url , IHttpQueryString ? queryString , IHttpPostData ? postData ) {
7979 if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
8080 return GetResponse ( HttpRequest . Patch ( url , queryString , postData ) ) ;
8181 }
@@ -88,7 +88,7 @@ public virtual IHttpResponse Patch(string url, IHttpQueryString queryString, IHt
8888 /// <param name="contentType">The content type of the request - eg. <c>application/json</c>.</param>
8989 /// <param name="body">The body of the request.</param>
9090 /// <returns>An instance of <see cref="IHttpResponse"/> representing the response.</returns>
91- public virtual IHttpResponse Patch ( string url , IHttpQueryString queryString , string contentType , string body ) {
91+ public virtual IHttpResponse Patch ( string url , IHttpQueryString ? queryString , string contentType , string body ) {
9292 if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
9393 return GetResponse ( HttpRequest . Patch ( url , queryString ) . SetContentType ( contentType ) . SetBody ( body ) ) ;
9494 }
@@ -125,7 +125,7 @@ public virtual IHttpResponse Patch(string url, JToken body, Formatting formattin
125125 /// <param name="queryString">The query string.</param>
126126 /// <param name="body">The body of the request.</param>
127127 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
128- public virtual IHttpResponse Patch ( string url , IHttpQueryString queryString , JToken body ) {
128+ public virtual IHttpResponse Patch ( string url , IHttpQueryString ? queryString , JToken body ) {
129129 if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
130130 if ( body == null ) throw new ArgumentNullException ( nameof ( body ) ) ;
131131 return GetResponse ( HttpRequest . Patch ( url , queryString , body ) ) ;
@@ -139,7 +139,7 @@ public virtual IHttpResponse Patch(string url, IHttpQueryString queryString, JTo
139139 /// <param name="body">The body of the request.</param>
140140 /// <param name="formatting">The formatting to be used when serializing <paramref name="body"/>.</param>
141141 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
142- public virtual IHttpResponse Patch ( string url , IHttpQueryString queryString , JToken body , Formatting formatting ) {
142+ public virtual IHttpResponse Patch ( string url , IHttpQueryString ? queryString , JToken body , Formatting formatting ) {
143143 if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
144144 if ( body == null ) throw new ArgumentNullException ( nameof ( body ) ) ;
145145 return GetResponse ( HttpRequest . Patch ( url , queryString , body , formatting ) ) ;
@@ -177,7 +177,7 @@ public virtual IHttpResponse Patch(string url, XNode body, SaveOptions options)
177177 /// <param name="queryString">The query string.</param>
178178 /// <param name="body">The body of the request.</param>
179179 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
180- public virtual IHttpResponse Patch ( string url , IHttpQueryString queryString , XNode body ) {
180+ public virtual IHttpResponse Patch ( string url , IHttpQueryString ? queryString , XNode body ) {
181181 if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
182182 if ( body == null ) throw new ArgumentNullException ( nameof ( body ) ) ;
183183 return GetResponse ( HttpRequest . Patch ( url , queryString , body ) ) ;
@@ -191,7 +191,7 @@ public virtual IHttpResponse Patch(string url, IHttpQueryString queryString, XNo
191191 /// <param name="body">The body of the request.</param>
192192 /// <param name="options">The options to be used when serializing <paramref name="body"/>.</param>
193193 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
194- public virtual IHttpResponse Patch ( string url , IHttpQueryString queryString , XNode body , SaveOptions options ) {
194+ public virtual IHttpResponse Patch ( string url , IHttpQueryString ? queryString , XNode body , SaveOptions options ) {
195195 if ( string . IsNullOrWhiteSpace ( url ) ) throw new ArgumentNullException ( nameof ( url ) ) ;
196196 if ( body == null ) throw new ArgumentNullException ( nameof ( body ) ) ;
197197 return GetResponse ( HttpRequest . Patch ( url , queryString , body , options ) ) ;
0 commit comments