Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatJSON ¶
FormatJSON formats JSON with proper indentation
func MinifyJSON ¶
MinifyJSON removes all unnecessary whitespace from JSON
func PrettyPrint ¶
PrettyPrint formats the response body for display in the TUI
func ValidateJSON ¶
ValidateJSON checks if the data is valid JSON
Types ¶
type ContentType ¶
type ContentType string
ContentType represents the detected content type
const ( ContentTypeJSON ContentType = "json" ContentTypeXML ContentType = "xml" ContentTypeHTML ContentType = "html" ContentTypeText ContentType = "text" ContentTypeJavaScript ContentType = "javascript" ContentTypeUnknown ContentType = "unknown" )
func DetectContentType ¶
func DetectContentType(contentType string, body []byte) ContentType
DetectContentType attempts to detect the content type from headers and content
Click to show internal directories.
Click to hide internal directories.