All files

src/stdlib/http_stream.panack

Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.

    1 // Blocking raw HTTP transport for bounded command-line streaming consumers.
    2 // HTTP framing belongs to the HTTP package. Empty bytes mark EOF.
    3 pub open(host: Str, port: Nat, tls: Bool, request: Bytes,
    4   response_limit: Nat, timeout_ms: Nat): Result[Nat, Str] {
    5   http_stream_open(host, port, tls, request, response_limit, timeout_ms)
    6 }
    7 
    8 pub read(handle: Nat): Result[Bytes, Str] { http_stream_read(handle) }
    9 pub close(handle: Nat): Result[Unit, Str] { http_stream_close(handle) }
   10 

Functions

[
  {
    "id": "declaration/0",
    "name": "open",
    "line": 3,
    "state": "covered",
    "entries": "2"
  },
  {
    "id": "declaration/1",
    "name": "read",
    "line": 8,
    "state": "covered",
    "entries": "4"
  },
  {
    "id": "declaration/2",
    "name": "close",
    "line": 9,
    "state": "covered",
    "entries": "2"
  }
]

Source branch outcomes

[]

Reviewed declaration exclusions

[]