add Client config to disable server push
- Adds `Client::builder().enable_push(false)` to disable push - Client sends a GO_AWAY if receiving a push when it's disabled
This commit is contained in:
@@ -176,6 +176,12 @@ impl Builder {
|
||||
self
|
||||
}
|
||||
|
||||
/// Enable or disable the server to send push promises.
|
||||
pub fn enable_push(&mut self, enabled: bool) -> &mut Self {
|
||||
self.settings.set_enable_push(enabled);
|
||||
self
|
||||
}
|
||||
|
||||
/// Bind an H2 client connection.
|
||||
///
|
||||
/// Returns a future which resolves to the connection value once the H2
|
||||
|
||||
Reference in New Issue
Block a user