Documentation
¶
Overview ¶
Package polling holds helpers shared by generated *AndPoll service methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecoverActionBody ¶
RecoverActionBody reads the raw create/update response left intact by option.WithResponseBodyInto(**http.Response) and decodes it into recovered. raw.Body is reset to a fresh reader over the same bytes so the caller can still read it after this returns. The returned bytes are the original raw payload, ready for sjson enrichment with a post-poll status field.
Returns an error if raw.Body has already been drained (e.g. a different WithResponseBodyInto destination shape consumed it during decoding), since *AndPoll cannot reconstruct the typed value in that case.
Types ¶
This section is empty.