Skip to content

Commit

Permalink
fixup! docs: add a basic HTTP client example
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMemories committed Dec 13, 2024
1 parent 84780f8 commit 8e78fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/http-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use reqwless::{
};

// RFC8449: TLS 1.3 encrypted records are limited to 16 KiB + 256 bytes.
const MAX_ENCRYTPED_TLS_RECORD_SIZE: usize = 16640;
const MAX_ENCRYTPED_TLS_13_RECORD_SIZE: usize = 16640;
// Required by `embedded_tls::TlsConnection::new()`.
const TLS_READ_BUFFER_SIZE: usize = MAX_ENCRYTPED_TLS_RECORD_SIZE;
const TLS_READ_BUFFER_SIZE: usize = MAX_ENCRYTPED_TLS_13_RECORD_SIZE;
// Can be smaller than the read buffer (could be adjusted: trade-off between memory usage and not
// splitting large writes into multiple records).
const TLS_WRITE_BUFFER_SIZE: usize = 4096;
Expand Down

0 comments on commit 8e78fdf

Please sign in to comment.