go-youtubekids-client/oas_request_encoders_gen.go

27 lines
425 B
Go
Raw Normal View History

2023-04-04 19:45:55 +00:00
// Code generated by ogen, DO NOT EDIT.
package go_youtubekids_client
import (
"bytes"
"net/http"
"github.com/go-faster/jx"
ht "github.com/ogen-go/ogen/http"
)
func encodeBrowseRequest(
req *BrowseRequestPayload,
r *http.Request,
) error {
const contentType = "application/json"
e := jx.GetEncoder()
{
req.Encode(e)
}
encoded := e.Bytes()
ht.SetBody(r, bytes.NewReader(encoded), contentType)
return nil
}