Http

haxe.http.HttpBasesys.Http (Class)

Static Members

Instance Members

noShutdown: Bool

cnxTimeout: Float

responseHeaders: Map

customRequest(post: Bool, api: haxe.io.Output, ?sock: sys.net.Socket, ?method: String): Void
Name Type Default
post Bool
api haxe.io.Output
sock sys.net.Socket (optional)
method String (optional)

new(url: String): Void
Name Type
url String

Private Members

responseHeadersSameKey: Map

chunk_size: Null<Int>

chunk_buf: haxe.io.Bytes

writeBody(body: Null<haxe.io.BytesOutput>, fileInput: Null<haxe.io.Input>, fileSize: Int, boundary: Null<String>, sock: sys.net.Socket): Void
Name Type
body Null<haxe.io.BytesOutput>
fileInput Null<haxe.io.Input>
fileSize Int
boundary Null<String>
sock sys.net.Socket

readHttpResponse(api: haxe.io.Output, sock: sys.net.Socket): Void
Name Type
api haxe.io.Output
sock sys.net.Socket

readChunk(chunk_re: EReg, api: haxe.io.Output, buf: haxe.io.Bytes, len: Int): Bool
Name Type
chunk_re EReg
api haxe.io.Output
buf haxe.io.Bytes
len Int
Returns
Bool