HTTP.setUserAgent

Set the value of the user agent request header field.

By default a request has it's "User-Agent" field set to defaultUserAgent even if setUserAgent was never called. Pass an empty string to suppress the "User-Agent" field altogether.

struct HTTP
void
setUserAgent
(
const(char)[] userAgent
)

Meta