Skip to content

Commit 4dd0167

Browse files
authored
Merge pull request #157 from multiformats/marco/tweak-path-example
Tweak hypothetical path example
2 parents 0cd369e + 1390fff commit 4dd0167

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ arbitrary data with some encoding and pass it as a parameter to the next
7272
component of the multiaddr. For example, we could reference a specific HTTP path
7373
by composing `path` and `urlencode` components along with an `http` component.
7474
This would look like
75-
`/dns4/example.com/http/path/percentencode/somepath%2ftosomething`. The
75+
`/dns4/example.com/http/GET/path/percentencode/somepath%2ftosomething`. The
7676
`percentencode` parses the data and passes it as a parameter to `path`, which
77-
passes it as a named parameter (`path=somepath/tosomething`). A user may not
77+
passes it as a named parameter (`path=somepath/tosomething`) to a `GET` request. A user may not
7878
like percentencode for their use case and may prefer to use `lenprefixencode` to
7979
have the multiaddr instead look like
80-
`/dns4/example.com/http/path/lenprefixencode/20_somepath/tosomething`. This
81-
would work the same and require no changes to the `path` or `http` component.
80+
`/dns4/example.com/http/GET/path/lenprefixencode/20_somepath/tosomething`. This
81+
would work the same and require no changes to the `path` or `GET` component.
8282
It's important to note that the binary representation of the data in
8383
`percentencode` and `lenprefixencode` would be the same. The only difference is
8484
how it appears in the human-readable representation.

0 commit comments

Comments
 (0)