dast ~master (2026-11-07T20:52:07.6172367)
Dub
Repo
HTTPClient
dast
http
server
@
safe
class
HTTPClient : TCPClient {
Request
request
;
bool
keepConnection
;
id
[@property getter];
headerSent
[@property getter];
this
(EventLoop loop, Socket socket, uint bufferSize);
void
writeHeader
(char[] data);
void
send
(char[] msg);
void
finish
();
void
reset
();
data
[@property getter];
bool
put
(size_t len);
protected nothrow
typeof
(
_rBuf
.
ptr
)
p
;
protected nothrow
char
[]
header
;
protected nothrow
bool
_headerSent
;
}
Constructors
this
this
(EventLoop loop, Socket socket, uint bufferSize)
Undocumented in source.
Members
Functions
finish
void
finish
()
Undocumented in source. Be warned that the author may not have intended to support it.
put
bool
put
(size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void
reset
()
Undocumented in source. Be warned that the author may not have intended to support it.
send
void
send
(char[] msg)
Undocumented in source. Be warned that the author may not have intended to support it.
writeHeader
void
writeHeader
(char[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
data
data
[@property getter]
Undocumented in source.
headerSent
headerSent
[@property getter]
Whether the header has been sent
id
id
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
_headerSent
bool
_headerSent
;
Undocumented in source.
header
char
[]
header
;
Undocumented in source.
keepConnection
bool
keepConnection
;
Undocumented in source.
p
typeof
(
_rBuf
.
ptr
)
p
;
Undocumented in source.
request
Request
request
;
Undocumented in source.
Meta
Source
See Implementation
dast
http
server
aliases
NextHandler
ReqHandler
classes
HTTPClient
HTTPServer
functions
bindAndListen