Documentation ¶
Index ¶
- type HttpBuilder
- func (h *HttpBuilder) AddData(key string, value interface{}) *HttpBuilder
- func (h *HttpBuilder) AddHeader(key string, value interface{}) *HttpBuilder
- func (h *HttpBuilder) AddParam(key string, value interface{}) *HttpBuilder
- func (h *HttpBuilder) DoRequest(method string) (string, int)
- func (h *HttpBuilder) Get() (string, int)
- func (h *HttpBuilder) GetDatas() string
- func (h *HttpBuilder) GetUrl() string
- func (h *HttpBuilder) Post() (string, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpBuilder ¶
type HttpBuilder struct {
// contains filtered or unexported fields
}
func NewHttpBuilder ¶
func NewHttpBuilder(baseUrl string) *HttpBuilder
func (*HttpBuilder) AddData ¶
func (h *HttpBuilder) AddData(key string, value interface{}) *HttpBuilder
func (*HttpBuilder) AddHeader ¶
func (h *HttpBuilder) AddHeader(key string, value interface{}) *HttpBuilder
func (*HttpBuilder) AddParam ¶
func (h *HttpBuilder) AddParam(key string, value interface{}) *HttpBuilder
func (*HttpBuilder) Get ¶
func (h *HttpBuilder) Get() (string, int)
func (*HttpBuilder) GetDatas ¶
func (h *HttpBuilder) GetDatas() string
func (*HttpBuilder) GetUrl ¶
func (h *HttpBuilder) GetUrl() string
func (*HttpBuilder) Post ¶
func (h *HttpBuilder) Post() (string, int)
Click to show internal directories.
Click to hide internal directories.