Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - func AddHeader(w *http.ResponseWriter)
 - func Option(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
 - func PostData(r *http.Request) map[string]interface{}
 - type RESTfulURL
 - type Service
 - func (s *Service) ConnectPool() *http.Client
 - func (s *Service) GET(url string, heard map[string][]string) ([]byte, error)
 - func (s *Service) HTTPGet(url string, values map[string][]string) ([]byte, error)
 - func (s *Service) HTTPPostRawRequest(url string, value []byte) ([]byte, error)
 - func (s *Service) HTTPPostRequest(url string, values map[string][]string) ([]byte, error)
 - func (s *Service) POST(url string, value []byte, header map[string][]string) ([]byte, error)
 - func (s *Service) PUT(url string, value []byte, header map[string][]string) ([]byte, error)
 
Constants ¶
      View Source
      
  const ( Client = "cli" Backend = "back" )
ConnType ...
Variables ¶
This section is empty.
Functions ¶
func Option ¶
func Option(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Option add header option
Types ¶
type RESTfulURL ¶
type RESTfulURL struct {
	RequestType string
	URL         string
	Fun         httprouter.Handle
	ConnType    string
}
    RESTfulURL ...
type Service ¶
type Service struct {
	// contains filtered or unexported fields
}
    Service ...
func (*Service) HTTPPostRawRequest ¶
HTTPPostRawRequest Http Raw Request
func (*Service) HTTPPostRequest ¶
HTTPPostRequest ...
 Click to show internal directories. 
   Click to hide internal directories.