Curl.onSeek

The event handler that gets called when the curl backend needs to seek the data to be sent.

struct Curl
@property
void
onSeek
(
CurlSeek delegate
(
long
,
CurlSeekPos
)
callback
)

Parameters

callback CurlSeek delegate
(
long
,
CurlSeekPos
)

the callback that receives a seek offset and a seek position etc.c.curl.CurlSeekPos

Return Value

Type: void

The callback returns the success state of the seeking etc.c.curl.CurlSeek

Examples

import std.net.curl;
Curl curl;
curl.initialize();
curl.set(CurlOption.url, "http://dlang.org");
curl.onSeek = (long p, CurlSeekPos sp)
{
    return CurlSeek.cantseek;
};
curl.perform();

Meta

Suggestion Box / Bug Report