Files
micro-client-http/request.go
pugnack 24801750a7
Some checks failed
coverage / build (push) Successful in 2m19s
test / test (push) Failing after 17m15s
integrate request builder into HTTP client for googleapis support (#157)
2025-09-23 13:30:15 +03:00

42 lines
636 B
Go

package http
import (
"go.unistack.org/micro/v4/client"
"go.unistack.org/micro/v4/codec"
)
type httpRequest struct {
service string
method string
request any
opts client.RequestOptions
}
func (h *httpRequest) Service() string {
return h.service
}
func (h *httpRequest) Method() string {
return h.method
}
func (h *httpRequest) Endpoint() string {
return h.method
}
func (h *httpRequest) ContentType() string {
return h.opts.ContentType
}
func (h *httpRequest) Body() any {
return h.request
}
func (h *httpRequest) Codec() codec.Codec {
return nil
}
func (h *httpRequest) Stream() bool {
return h.opts.Stream
}