Http1Stage

object Http1Stage
class Object
trait Matchable
class Any

Value members

Concrete methods

def encodeHeaders(headers: Iterable[Raw], rr: Writer, isServer: Boolean): Unit

Encodes the headers into the Writer. Does not encode Transfer-Encoding or Content-Length headers, which are left for the body encoder. Does not encode headers with invalid names. Adds Date header if one is missing and this is a server response.

Encodes the headers into the Writer. Does not encode Transfer-Encoding or Content-Length headers, which are left for the body encoder. Does not encode headers with invalid names. Adds Date header if one is missing and this is a server response.

Note: this method is very niche but useful for both server and client.