Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoParser = DataParser{R: ByteReader, W: ByteWriter} JsonParser = DataParser{R: JsonReader, W: JsonWriter} TextParser = DataParser{R: TextReader, W: TextWriter} FormParser = DataParser{} // 暂时不实现 GetFileParser = DataParser{} // 暂时不实现 SendFileParser = DataParser{} // 暂时不实现 )
Functions ¶
func ByteReader ¶ added in v0.2.7
func ByteWriter ¶ added in v0.2.7
func JsonReader ¶ added in v0.2.7
func JsonWriter ¶ added in v0.2.7
func TextReader ¶ added in v0.2.7
func TextWriter ¶ added in v0.2.7
Types ¶
type Api ¶ added in v0.2.6
type Api[R any] struct { Method string // 默认视为POST Parser DataParser Path string Client *Client }
常规请求定义
Click to show internal directories.
Click to hide internal directories.