Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSSEStream ¶ added in v1.1.0
IsSSEStream check if the response is a SSE stream
func IsStreamableResponse ¶ added in v1.1.0
IsStreamableResponse check if the response is streamable Determine whether it is a streaming response based on the following conditions: 1. Using Transfer-Encoding: chunked 2. The content type indicates that this is a streamable response (e.g. text/event-stream, application/json, etc.)
Types ¶
type Client ¶
type Client struct{}
Client client to generic invoke dubbo
func SingletonHTTPClient ¶
func SingletonHTTPClient() *Client
SingletonHTTPClient singleton HTTP Client
type RestMetadata ¶
type RestMetadata struct {
ApplicationName string `yaml:"application_name" json:"application_name" mapstructure:"application_name"`
Group string `yaml:"group" json:"group" mapstructure:"group"`
Version string `yaml:"version" json:"version" mapstructure:"version"`
Interface string `yaml:"interface" json:"interface" mapstructure:"interface"`
Method string `yaml:"method" json:"method" mapstructure:"method"`
Types []string `yaml:"type" json:"types" mapstructure:"types"`
Retries string `yaml:"retries" json:"retries,omitempty" property:"retries"`
ClusterName string `yaml:"cluster_name" json:"cluster_name,omitempty" property:"cluster_name"`
ProtocolTypeStr string `yaml:"protocol_type" json:"protocol_type,omitempty" property:"protocol_type"`
SerializationTypeStr string `yaml:"serialization_type" json:"serialization_type,omitempty" property:"serialization_type"`
}
RestMetadata http metadata, api config
Click to show internal directories.
Click to hide internal directories.