Struct mio_httpc::CallBuilder [] [src]

pub struct CallBuilder {}

Used to start a call and get a Call for it.

Methods

impl CallBuilder
[src]

[src]

If req contains body it will be used.

If req contains no body, but has content-length set, it will wait for send body to be provided through Httpc::call_send. mio_httpc will set headers (if they are not already): user-agent, connection, host, auth, content-length If you're only executing a one-off call you should set connection: close as default is keep-alive.

[src]

Consume and execute HTTP call

[src]

Consume and start a WebSocket

[src]

Add custom root ca in DER format

[src]

Default 10MB.

This will limit how big the internal Vec can grow. HTTP response headers are always stored in internal buffer. HTTP response body is stored in internal buffer if no external buffer is provided.

For WebSockets this will also be a received fragment size limit!

[src]

Default: 100ms

Starting point of dns packet resends if nothing received. Every next resend timeout is 2x the previous one but stops at 1s. So for 100ms: 100ms, 200ms, 400ms, 800ms, 1000ms, 1000ms...

[src]

Default true.

Configurable because it entails copying the data stream.

[src]

Default 32K

Max size of chunk in a chunked transfer.

[src]

Default 60s

Maximum amount of time a call should last.