From 3c3ee22e9fdca6046d5e1b6990353d994ae1bf36 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Thu, 11 Jun 2020 12:11:43 -0500 Subject: [PATCH] =?UTF-8?q?changed=20`\r`=20to=20`=E2=90=8D`=20and=20`\n`?= =?UTF-8?q?=20to=20`=E2=90=8A`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/adr/0004-nats-headers.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/adr/0004-nats-headers.md b/doc/adr/0004-nats-headers.md index 41347c98..b74d3752 100644 --- a/doc/adr/0004-nats-headers.md +++ b/doc/adr/0004-nats-headers.md @@ -22,7 +22,7 @@ The reference NATS Go client uses the `http.Header` infrastructure for serializi NATS Headers: -The only difference between a NATS header and HTTP is the first line. Instead of an HTTP method followed by a resource and the HTTP version (`GET / HTTP/1.1`), NATS will provide a string identifying the header version (`NATS/X.x\r\n`), currently 1.0, so it is rendered as `NATS/1.0\r\n`. +The only difference between a NATS header and HTTP is the first line. Instead of an HTTP method followed by a resource and the HTTP version (`GET / HTTP/1.1`), NATS will provide a string identifying the header version (`NATS/X.x`), currently 1.0, so it is rendered as `NATS/1.0␍␊`. Please refer to the [specification](https://tools.ietf.org/html/rfc7230#section-3.2) for information on how to encode/decode HTTP headers, and the [Go implementation](https://golang.org/src/net/http/header.go). @@ -45,8 +45,8 @@ The server that is able to send and receive headers will specify so in it's [`IN Messages that include a header have a `HPUB` protocol: ``` -HPUB SUBJECT REPLY 23 30\r\nNATS/1.0\r\nHeader: X\r\n\r\nPAYLOAD\r\n -HPUB SUBJECT REPLY 23 23\r\nNATS/1.0\r\nHeader: X\r\n\r\n\r\n +HPUB SUBJECT REPLY 23 30␍␊NATS/1.0␍␊Header: X␍␊␍␊PAYLOAD␍␊ +HPUB SUBJECT REPLY 23 23␍␊NATS/1.0␍␊Header: X␍␊␍␊␍␊ HPUB [REPLY]
@@ -63,8 +63,8 @@ HPUB [REPLY] Clients will see `HMSG` protocol lines for `MSG`s that contain headers ``` -HMSG SUBJECT 1 REPLY 23 30\r\nNATS/1.0\r\nHeader: X\r\n\r\nPAYLOAD\r\n -HPUB SUBJECT 1 REPLY 23 23\r\nNATS/1.0\r\nHeader: X\r\n\r\n\r\n +HMSG SUBJECT 1 REPLY 23 30␍␊NATS/1.0␍␊Header: X␍␊␍␊PAYLOAD␍␊ +HPUB SUBJECT 1 REPLY 23 23␍␊NATS/1.0␍␊Header: X␍␊␍␊␍␊ HMSG [REPLY]