connect

HTTP connect request.

T[]
connect
(
T = char
)
(
const(char)[] url
,
HTTP conn = HTTP()
)
if (
is(T == char) ||
is(T == ubyte)
)

Parameters

url const(char)[]

resource make a connect to

conn HTTP

HTTP connection to use

The template parameter T specifies the type to return. Possible values are char and ubyte to return char[] or ubyte[].

Return Value

Type: T[]

A T[] range containing the connect info of the resource pointed to by the URL.

Examples

import std.net.curl;
connect("https://httpbin.org/headers");

See Also

Meta