func (r request) do() (*http.Response, error) {
	f := r.form
	req := http.Request{
		Method:  f.Method,
		Headers: make(map[string]string),
	}
	// method on form is assumed to be "post":
	req.URL = f.URL.String()
	req.Body = f.Params.Encode(r.user.dom)
	req.Headers["Content-Type"] = "application/x-www-form-urlencoded"
	// auth handling:
	if r.user.dom.Checked("#has-login") {
		jwt := r.user.JWT()
		req.Headers["Authorization"] = "Bearer " + jwt
	}
	return r.user.httpClient.Do(r.user.dom, req)
}
// do actually makes the request.
do actually makes the request.
// do actually makes the request .
func (r request) do() (*http.Response, error) {
	f := r.form
	req := http.Request{
		Method:  f.Method,
		Headers: make(map[string]string),
	}
	req.URL = f.URL.String()
	req.Body = f.Params.Encode(r.user.dom)
	req.Headers["Content-Type"] = "application/x-www-form-urlencoded"
	if r.user.dom.Checked("#has-login") {
		jwt := r.user.JWT()
		req.Headers["Authorization"] = "Bearer " + jwt
	}
	return r.user.httpClient.Do(r.user.dom, req)
}
func ( r request ) do ( ) ( * http . Response , error ) { f := r . form req := http . Request { Method : f . Method , Headers : make ( map [ string ] string ) , } req . URL = f . URL . String ( ) req . Body = f . Params . Encode ( r . user . dom ) req . Headers [ " " ] = " " if r . user . dom . Checked ( " " ) { jwt := r . user . JWT ( ) req . Headers [ " " ] = " " + jwt } return r . user . httpClient . Do ( r . user . dom , req ) }
do actually makes the request.
do actually makes the request .
// method on form is assumed to be "post": // auth handling: