binary

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package binary turns raw response payloads into either printable text or a file on disk, based on the declared MIME type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessHttpBody

func ProcessHttpBody(data []byte, contentType string) (string, string, error)

ProcessHttpBody processes HTTP body data based on Content-Type Returns (bodyString, filePath, error)

func SaveBinaryToTempFile

func SaveBinaryToTempFile(data []byte, contentType string) (string, error)

SaveBinaryToTempFile saves binary data to a temporary file and returns the file path

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL