Documentation ¶ Index ¶ func JSON(r *http.Request, dst any) (err error) func Plain(r *http.Request) (io.ReadCloser, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func JSON ¶ func JSON(r *http.Request, dst any) (err error) JSON executes r with the default HTTP client and performs API-related processing such as deserialization and error-checking. If no errors occur, it attempts to unmarshal the response body into dst. func Plain ¶ func Plain(r *http.Request) (io.ReadCloser, error) Plain executes r with the default HTTP client and returns the plain body. Remember to close it after reading. Types ¶ This section is empty. Source Files ¶ View all Source files request.go Click to show internal directories. Click to hide internal directories.