@@ -19,17 +19,6 @@ public sealed class HttpResponseMessageBuilder
1919 Content = new StringContent ( "" )
2020 } ;
2121
22- /// <summary>
23- /// Specifies the version of the response.
24- /// </summary>
25- /// <param name="httpVersion">The <see cref="HttpVersion"/> of the response.</param>
26- /// <returns>The <see cref="HttpResponseMessageBuilder"/> for further building of the response.</returns>
27- [ Obsolete ( "Renamed to WithHttpVersion." , true ) ]
28- public HttpResponseMessageBuilder WithVersion ( Version httpVersion )
29- {
30- return WithHttpVersion ( httpVersion ) ;
31- }
32-
3322 /// <summary>
3423 /// Specifies the version of the response.
3524 /// </summary>
@@ -41,17 +30,6 @@ public HttpResponseMessageBuilder WithHttpVersion(Version httpVersion)
4130 return this ;
4231 }
4332
44- /// <summary>
45- /// Specifies the status code of the response.
46- /// </summary>
47- /// <param name="statusCode">The <see cref="HttpStatusCode"/> of the response.</param>
48- /// <returns>The <see cref="HttpResponseMessageBuilder"/> for further building of the response.</returns>
49- [ Obsolete ( "Renamed to WithHttpStatusCode." , true ) ]
50- public HttpResponseMessageBuilder WithStatusCode ( HttpStatusCode httpStatusCode )
51- {
52- return WithHttpStatusCode ( httpStatusCode ) ;
53- }
54-
5533 /// <summary>
5634 /// Specifies the status code of the response.
5735 /// </summary>
@@ -63,17 +41,6 @@ public HttpResponseMessageBuilder WithHttpStatusCode(HttpStatusCode statusCode)
6341 return this ;
6442 }
6543
66- /// <summary>
67- /// Configure request headers using a builder by directly accessing the <see cref="HttpResponseHeaders"/>.
68- /// </summary>
69- /// <param name="responseHeaderBuilder">The builder for configuring the response headers.</param>
70- /// <returns>The <see cref="HttpResponseMessageBuilder"/> for further building of the response.</returns>
71- [ Obsolete ( "Renamed to WithResponseHeaders." , true ) ]
72- public HttpResponseMessageBuilder WithHeaders ( Action < HttpResponseHeaders > responseHeaderBuilder )
73- {
74- return WithResponseHeaders ( responseHeaderBuilder ) ;
75- }
76-
7744 /// <summary>
7845 /// Configure request headers using a builder by directly accessing the <see cref="HttpResponseHeaders"/>.
7946 /// </summary>
@@ -90,18 +57,6 @@ public HttpResponseMessageBuilder WithResponseHeaders(Action<HttpResponseHeaders
9057 return this ;
9158 }
9259
93- /// <summary>
94- /// Adds a request header to the response.
95- /// </summary>
96- /// <param name="header">The name of the header to add.</param>
97- /// <param name="value">The value of the header to add.</param>
98- /// <returns>The <see cref="HttpResponseMessageBuilder"/> for further building of the response.</returns>
99- [ Obsolete ( "Renamed to WithResponseHeader." , true ) ]
100- public HttpResponseMessageBuilder WithHeader ( string header , string value )
101- {
102- return WithResponseHeader ( header , value ) ;
103- }
104-
10560 /// <summary>
10661 /// Adds a request header to the response.
10762 /// </summary>
0 commit comments