@@ -90,7 +90,7 @@ impl ServiceConfig {
9090 /// details, see [`FlowControl`].
9191 ///
9292 /// The default value is 65,535.
93- pub fn initial_window_size ( mut self , size : u32 ) -> Self {
93+ pub fn set_initial_window_size ( mut self , size : u32 ) -> Self {
9494 self . window_sz = size;
9595 self . window_sz_threshold = ( ( size as f32 ) / 3.0 ) as u32 ;
9696 self . settings . set_initial_window_size ( Some ( size) ) ;
@@ -106,7 +106,7 @@ impl ServiceConfig {
106106 /// The default value is 1Mb.
107107 ///
108108 /// [`FlowControl`]: ../struct.FlowControl.html
109- pub fn initial_connection_window_size ( mut self , size : u32 ) -> Self {
109+ pub fn set_initial_connection_window_size ( mut self , size : u32 ) -> Self {
110110 assert ! ( size <= consts:: MAX_WINDOW_SIZE ) ;
111111 self . connection_window_sz = size;
112112 self . connection_window_sz_threshold = ( ( size as f32 ) / 4.0 ) as u32 ;
@@ -126,7 +126,7 @@ impl ServiceConfig {
126126 ///
127127 /// This function panics if `max` is not within the legal range specified
128128 /// above.
129- pub fn max_frame_size ( mut self , max : u32 ) -> Self {
129+ pub fn set_max_frame_size ( mut self , max : u32 ) -> Self {
130130 self . settings . set_max_frame_size ( max) ;
131131 self
132132 }
@@ -142,15 +142,15 @@ impl ServiceConfig {
142142 /// buffered to decode HEADERS frames.
143143 ///
144144 /// By default value is set to 48Kb.
145- pub fn max_header_list_size ( mut self , max : u32 ) -> Self {
145+ pub fn set_max_header_list_size ( mut self , max : u32 ) -> Self {
146146 self . settings . set_max_header_list_size ( Some ( max) ) ;
147147 self
148148 }
149149
150150 /// Sets the max number of continuation frames for HEADERS
151151 ///
152152 /// By default value is set to 5
153- pub fn max_header_continuation_frames ( mut self , max : usize ) -> Self {
153+ pub fn set_max_header_continuation_frames ( mut self , max : usize ) -> Self {
154154 self . max_header_continuations = max;
155155 self
156156 }
@@ -178,7 +178,7 @@ impl ServiceConfig {
178178 /// See [Section 5.1.2] in the HTTP/2 spec for more details.
179179 ///
180180 /// [Section 5.1.2]: https://http2.github.io/http2-spec/#rfc.section.5.1.2
181- pub fn max_concurrent_streams ( mut self , max : u32 ) -> Self {
181+ pub fn set_max_concurrent_streams ( mut self , max : u32 ) -> Self {
182182 self . remote_max_concurrent_streams = Some ( max) ;
183183 self . settings . set_max_concurrent_streams ( Some ( max) ) ;
184184 self
@@ -205,7 +205,7 @@ impl ServiceConfig {
205205 /// error, forcing the connection to terminate.
206206 ///
207207 /// The default value is 32.
208- pub fn max_concurrent_reset_streams ( mut self , val : usize ) -> Self {
208+ pub fn set_max_concurrent_reset_streams ( mut self , val : usize ) -> Self {
209209 self . reset_max = val;
210210 self
211211 }
@@ -231,7 +231,7 @@ impl ServiceConfig {
231231 /// error, forcing the connection to terminate.
232232 ///
233233 /// The default value is 30 seconds.
234- pub fn reset_stream_duration ( mut self , dur : Seconds ) -> Self {
234+ pub fn set_reset_stream_duration ( mut self , dur : Seconds ) -> Self {
235235 self . reset_duration = dur. into ( ) ;
236236 self
237237 }
@@ -251,15 +251,15 @@ impl ServiceConfig {
251251 /// Hadnshake includes receiving preface and completing connection preparation.
252252 ///
253253 /// By default handshake timeuot is 5 seconds.
254- pub fn handshake_timeout ( mut self , timeout : Seconds ) -> Self {
254+ pub fn set_handshake_timeout ( mut self , timeout : Seconds ) -> Self {
255255 self . handshake_timeout = timeout;
256256 self
257257 }
258258
259259 /// Set ping timeout.
260260 ///
261261 /// By default ping time-out is set to 60 seconds.
262- pub fn ping_timeout ( mut self , timeout : Seconds ) -> Self {
262+ pub fn set_ping_timeout ( mut self , timeout : Seconds ) -> Self {
263263 self . ping_timeout = timeout;
264264 self
265265 }
0 commit comments