abla/xtensa/companion/httpstream
Generated from source.
Import with import "abla/xtensa/companion/httpstream".
Source: abla/xtensa/companion/httpstream/entry.ab
InstallerHttpChunk (class)
class InstallerHttpChunk(val data: string, val eof: bool, val error: string = "")
Carries stream bytes, end-of-input status or a read error.
InstallerHttpSource (interface)
resource interface InstallerHttpSource
Defines a resource that supplies incoming HTTP bytes in bounded chunks.
InstallerHttpSource.readChunk (method)
fun readChunk(maximum: int): InstallerHttpChunk
Reads up to the requested number of bytes and reports end of input or a read error.
InstallerHttpResult (class)
class InstallerHttpResult(val status: int, val location: string, val error: string)
Carries the HTTP response status, redirect location and any streaming error.
installerHttpResponse (fun)
fun installerHttpResponse(var source: InstallerHttpSource, output: SecureFile,
maximumBody: int): InstallerHttpResult
Writes only a successful 200 response body; redirects return their Location without writing. All framing and the maximum apply before accepting bytes.
installerHttpsResponse (fun)
fun installerHttpsResponse(host: string, target: string, output: SecureFile, maximumBody: int,
timeout: int, deadline: int, caPath: string = "", port: int = 443): InstallerHttpResult
The production caller supplies no custom CA. A custom CA and port also permit a loopback TLS fixture to exercise framing without public network.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.