Documentation

Std.Http.Internal.Encode

Encode #

Appends the wire form of a value for a specific protocol version to a ByteArray. With open Std.Http.Internal, out ++ x appends the HTTP/1.1 wire form of x to out.

Appends the wire form of a t for protocol version v to a ByteArray.

Instances
    @[instance_reducible]

    out ++ x appends the HTTP/1.1 wire form of x to out. There is no Encode instance for ByteArray, so out ++ bytes stays the usual append.

    Equations
    Instances For
      @[instance_reducible]
      Equations
      @[instance_reducible]

      A character is written as UTF-8, so an ASCII character is a single byte.

      Equations
      @[irreducible]

      Appends the decimal digits of n.

      Equations
      Instances For
        @[irreducible]

        Appends the lowercase hexadecimal digits of n.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[instance_reducible]
          Equations
          • One or more equations did not get rendered due to their size.