Documentation ¶
Index ¶
- type Body
- type Headers
- type Params
- func (p *Params) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (p *Params) SetOnChange(f func(queryParams []domain.KeyValue, pathParams []domain.KeyValue))
- func (p *Params) SetPathParams(pathParams []domain.KeyValue)
- func (p *Params) SetQueryParams(queryParams []domain.KeyValue)
- type Request
- type Response
- func (r *Response) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (r *Response) SetCookies(cookies []domain.KeyValue)
- func (r *Response) SetError(err error)
- func (r *Response) SetHeaders(headers []domain.KeyValue)
- func (r *Response) SetMessage(message string)
- func (r *Response) SetOnCopyResponse(f func(gtx layout.Context, dataType, data string))
- func (r *Response) SetResponse(response string)
- func (r *Response) SetStatusParams(code int, duration time.Duration, size int)
- type Restful
- func (r *Restful) AddFileToFormData(fieldId, filePath string)
- func (r *Restful) GetHTTPResponse() *domain.HTTPResponseDetail
- func (r *Restful) HidePrompt()
- func (r *Restful) HideSendingRequestLoading()
- func (r *Restful) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (r *Restful) SetBinaryBodyFilePath(filePath string)
- func (r *Restful) SetDataChanged(changed bool)
- func (r *Restful) SetHTTPResponse(detail domain.HTTPResponseDetail)
- func (r *Restful) SetOnBinaryFileSelect(f func(id string))
- func (r *Restful) SetOnCopyResponse(f func(gtx layout.Context, dataType, data string))
- func (r *Restful) SetOnDataChanged(f func(id string, data any))
- func (r *Restful) SetOnFormDataFileSelect(f func(requestId, fieldId string))
- func (r *Restful) SetOnPostRequestSetChanged(f func(id string, statusCode int, item, from, fromKey string))
- func (r *Restful) SetOnRequestTabChange(f func(id, tab string))
- func (r *Restful) SetOnSave(f func(id string))
- func (r *Restful) SetOnSetOnTriggerRequestChanged(f func(id, collectionID, requestID string))
- func (r *Restful) SetOnSubmit(f func(id string))
- func (r *Restful) SetOnTitleChanged(f func(title string))
- func (r *Restful) SetPathParams(params []domain.KeyValue)
- func (r *Restful) SetPostRequestSetPreview(preview string)
- func (r *Restful) SetPostRequestSetValues(set domain.PostRequestSet)
- func (r *Restful) SetPreRequestCollections(collections []*domain.Collection, selectedID string)
- func (r *Restful) SetPreRequestRequests(requests []*domain.Request, selectedID string)
- func (r *Restful) SetQueryParams(params []domain.KeyValue)
- func (r *Restful) SetURL(url string)
- func (r *Restful) ShowPrompt(title, content, modalType string, ...)
- func (r *Restful) ShowSendingRequestLoading()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { DropDown *widgets.DropDown FormData *component.FormData BinaryFile *widgets.FileSelector // contains filtered or unexported fields }
func (*Body) Layout ¶
func (b *Body) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Body) SetOnChange ¶
type Headers ¶
type Headers struct {
// contains filtered or unexported fields
}
func NewHeaders ¶
func (*Headers) Layout ¶
func (h *Headers) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Headers) SetHeaders ¶
func (*Headers) SetOnChange ¶
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
func (*Params) Layout ¶
func (p *Params) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Params) SetOnChange ¶
func (*Params) SetPathParams ¶
func (*Params) SetQueryParams ¶
type Request ¶
type Request struct { Tabs *widgets.Tabs PreRequest *component.PrePostRequest PostRequest *component.PrePostRequest Body *Body Params *Params Headers *Headers Auth *component.Auth OnTabChange func(title string) // contains filtered or unexported fields }
func NewRequest ¶
func (*Request) Layout ¶
func (r *Request) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
type Response ¶
func NewResponse ¶
func NewResponse(theme *chapartheme.Theme) *Response
func (*Response) Layout ¶
func (r *Response) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Response) SetCookies ¶
func (*Response) SetHeaders ¶
func (*Response) SetMessage ¶
func (*Response) SetOnCopyResponse ¶
func (*Response) SetResponse ¶
type Restful ¶
type Restful struct { Prompt *widgets.Prompt Req *domain.Request Breadcrumb *component.Breadcrumb AddressBar *component.AddressBar Response *Response Request *Request // contains filtered or unexported fields }
func (*Restful) AddFileToFormData ¶
func (*Restful) GetHTTPResponse ¶
func (r *Restful) GetHTTPResponse() *domain.HTTPResponseDetail
func (*Restful) HidePrompt ¶
func (r *Restful) HidePrompt()
func (*Restful) HideSendingRequestLoading ¶
func (r *Restful) HideSendingRequestLoading()
func (*Restful) Layout ¶
func (r *Restful) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Restful) SetBinaryBodyFilePath ¶
func (*Restful) SetDataChanged ¶
func (*Restful) SetHTTPResponse ¶
func (r *Restful) SetHTTPResponse(detail domain.HTTPResponseDetail)
func (*Restful) SetOnBinaryFileSelect ¶
func (*Restful) SetOnCopyResponse ¶
func (*Restful) SetOnDataChanged ¶
func (*Restful) SetOnFormDataFileSelect ¶
func (*Restful) SetOnPostRequestSetChanged ¶
func (*Restful) SetOnRequestTabChange ¶ added in v0.2.7
func (*Restful) SetOnSetOnTriggerRequestChanged ¶ added in v0.2.7
func (*Restful) SetOnSubmit ¶
func (*Restful) SetOnTitleChanged ¶
func (*Restful) SetPathParams ¶
func (*Restful) SetPostRequestSetPreview ¶
func (*Restful) SetPostRequestSetValues ¶
func (r *Restful) SetPostRequestSetValues(set domain.PostRequestSet)
func (*Restful) SetPreRequestCollections ¶ added in v0.2.7
func (r *Restful) SetPreRequestCollections(collections []*domain.Collection, selectedID string)
func (*Restful) SetPreRequestRequests ¶ added in v0.2.7
func (*Restful) SetQueryParams ¶
func (*Restful) ShowPrompt ¶
func (*Restful) ShowSendingRequestLoading ¶
func (r *Restful) ShowSendingRequestLoading()
Click to show internal directories.
Click to hide internal directories.