Discover Packages
github.com/adsbynimbus/nimbus-openrtb/go
decode
package
Version:
v0.0.0-...-1ec9320
Opens a new window with list of versions in this module.
Published: Nov 26, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
decode
import "github.com/adsbynimbus/nimbus-openrtb/go/decode"
Overview
Index
Package files
request.go response.go
func RequestToStruct(res *http.Request, v interface{}) error
RequestToStruct takes the a request generically, checks the Content-Encoding
and unmarshals the object to the provided data structure
func ResponseToStruct(res *http.Response, v interface{}) error
ResponseToStruct takes the response generically, checks the Content-Encoding
and unmarshals the object to the provided data structure
Generated by godoc2md
Expand ▾
Collapse ▴
Documentation
¶
RequestToStruct takes the a request generically, checks the Content-Encoding
and unmarshals the object to the provided data structure
ResponseToBytes takes the Nimbus response, decodes if neccasary and returns the body as bytes
if the Content-Encoding header is missing this can silently fail
ResponseToStruct takes the response generically, checks the Content-Encoding
and unmarshals the object to the provided data structure
Source Files
¶
Click to show internal directories.
Click to hide internal directories.