Files
micro-client-http/message.go
pugnack 3f3c3a4471
Some checks failed
coverage / build (push) Successful in 3m8s
test / test (push) Failing after 18m47s
[v3] fix panic on publish methods (#167)
* 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
2025-10-29 09:20:04 +03:00

29 lines
474 B
Go

package http
import (
"go.unistack.org/micro/v3/client"
"go.unistack.org/micro/v3/metadata"
)
type httpMessage struct {
topic string
payload interface{}
opts client.MessageOptions
}
func (m *httpMessage) Topic() string {
return m.topic
}
func (m *httpMessage) Payload() interface{} {
return m.payload
}
func (m *httpMessage) ContentType() string {
return m.opts.ContentType
}
func (m *httpMessage) Metadata() metadata.Metadata {
return m.opts.Metadata
}