Documentation ¶
Overview ¶
ulib client unpack data
Example:
package main import ( "fmt" "github.com/3JoB/ulib/net/client" "github.com/go-resty/resty/v2" ) func main() { r, err := resty.New().R().Get("https://example.com/example.json") data := client.UnPackData(r.RawResponse).String() fmt.Println(data) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnPackData ¶
Decompress the Body package, support gzip, br, zstd, deflate
func UnPackRawFromDeflate ¶ added in v1.16.0
func UnPackRawFromDeflate(src io.Reader) io.ReadCloser
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.