[v3] fix panic on publish methods (#167)
Some checks failed
coverage / build (push) Successful in 3m8s
test / test (push) Failing after 18m47s

* move publish methods to a separate file
* reorder client methods
* fix panic for publish
* refactoring
* go mod tidy
* rename go.micro => micro
* add comment to README about Set-Cookie headers
This commit is contained in:
2025-10-29 11:20:04 +05:00
committed by GitHub
parent cee0fde959
commit 3f3c3a4471
6 changed files with 126 additions and 114 deletions

View File

@@ -13,6 +13,7 @@ implements HTTP rules defined in the [google/api/http.proto](https://github.com/
* Streaming is not yet implemented.
* Only protobuf-generated messages are supported.
* In `micro/v3`, metadata is implemented as `map[string]string`, which works for most headers but not for multiple `Set-Cookie` headers. The HTTP specification forbids the use of commas in `Set-Cookie` headers; therefore, their values cannot be parsed reliably. In `micro/v4`, metadata uses `map[string][]string`, resolving this issue.
## Usage