Documentation
¶
Overview ¶
Package output provides response formatting with syntax highlighting and colorization for HTTP responses, JSON, and XML content.
Index ¶
- type Formatter
- func (f *Formatter) FormatBody(resp *models.HttpResponse) string
- func (f *Formatter) FormatError(err error) string
- func (f *Formatter) FormatHeaders(resp *models.HttpResponse) string
- func (f *Formatter) FormatInfo(msg string) string
- func (f *Formatter) FormatResponse(resp *models.HttpResponse) string
- func (f *Formatter) FormatSuccess(msg string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter handles response formatting and colorization
func NewFormatter ¶
NewFormatter creates a new formatter
func (*Formatter) FormatBody ¶
func (f *Formatter) FormatBody(resp *models.HttpResponse) string
FormatBody formats the response body
func (*Formatter) FormatError ¶
FormatError formats an error message
func (*Formatter) FormatHeaders ¶
func (f *Formatter) FormatHeaders(resp *models.HttpResponse) string
FormatHeaders formats response headers
func (*Formatter) FormatInfo ¶
FormatInfo formats an info message
func (*Formatter) FormatResponse ¶
func (f *Formatter) FormatResponse(resp *models.HttpResponse) string
FormatResponse formats the full HTTP response
func (*Formatter) FormatSuccess ¶
FormatSuccess formats a success message
Click to show internal directories.
Click to hide internal directories.