// This is a shorthand method that calls f.Method with `POST`
// and calls f.Url with the url you give to her
322910
func (f *Request) Post(url string) *Request {
	f.Url(url).Method("POST")
	return f
}
744759
func (c *Client) Post(ctx context.Context, url string, bodyType string, body io.Reader) error {
	resp, err := c.post(ctx, url, bodyType, body)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
89973
func (api *API) Call(method string, params interface{}) (response Response, err error) {
	b, err := api.callBytes(method, params)
	if err == nil {
		err = json.Unmarshal(b, &response)
	}
	return
}
665507
func (r *Route) Method(method string, fn http.HandlerFunc) *Route {
	r.addMethodHandlerFunc(method, fn)
	return r
}
1274881
func (r *Router) POST(path string, handlers ...HandlerFunc) {
	r.Handle("POST", path, handlers)
}
715128
func (r *Router) Post(pattern string, handlers ...Middleware) *Router {
	return r.Handle(http.MethodPost, pattern, handlers...)
}
814079
func (c Client) post(url string, payload interface{}) (*http.Response, error) {
	return c.request("POST", url, payload)
}
759353
func (app *App) POST(route string, handler interface{}) *App {
	app.defaultRouter.Handle(MethodPOST, route, handler)
	return app
}
358505
func (api *Client) postMethod(ctx context.Context, path string, values url.Values, intf interface{}) error {
	return postForm(ctx, api.httpclient, api.endpoint+path, values, intf, api)
}
1044433
func (c *Client) Post() *Request {
	req := c.Request()
	req.Method("POST")
	return req
}
254460
func (f *Request) Method(method string) *Request {
	f.method = method
	return f
}
479542
func (c *client) post(rawurl string, in, out interface{}) error {
	return c.do(rawurl, "POST", in, out)
}
1199223
func Post(path string, h interface{}, m ...interface{}) {
	Default.Post(path, h, m...)
}
216433
func (ari *ARInGO) Call(method, reqUrl string, data url.Values) (reply []byte, err error) {
	var reqBody io.Reader
	switch method {
	case HTTP_GET: // Add data inside url
		u, _ := url.ParseRequestURI(reqUrl)
		u.RawQuery = data.Encode()
		reqUrl = u.String()
	case HTTP_POST, HTTP_DELETE:
		reqBody = bytes.NewBufferString(data.Encode())
	default:
		return nil, fmt.Errorf("Unrecognized method: %s", method)
	}
	req, err := http.NewRequest(method, reqUrl, reqBody)
	if err != nil {
		return nil, err
	}
	req.Header.Set("User-Agent", ari.userAgent)
	req.SetBasicAuth(ari.username, ari.password)
	resp, err := ari.httpClient.Do(req)
	if err != nil {
		return nil, err
	} else if resp.StatusCode == 204 { // No content status code
		return nil, nil
	} else if resp.StatusCode != 200 {
		return nil, NewErrUnexpectedReplyCode(resp.StatusCode)
	}
	defer resp.Body.Close()
	respBody, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return nil, err
	}
	if method != HTTP_GET {
		return nil, nil
	}
	return respBody, nil

}
137644
func (c *Client) Post(url string, bodyType string, body interface{}) (*Response, error) {
	req, err := c.NewRequest("POST", url, body)
	if err != nil {
		return nil, err
	}

	req.Header.Set("Content-Type", bodyType)

	req = c.Config.AddRequestHeader(req)
	response, err := c.Do(req)

	if err != nil {
		return nil, err
	}

	return response, nil
}
130714
func (api *APIBuilder) Post(relativePath string, handlers ...context.Handler) *Route {
	return api.Handle(http.MethodPost, relativePath, handlers...)
}
811596
func (m *Method) PostHandle(handler Handler) *Method {
	m.postHandlers = append(m.postHandlers, handler)
	return m
}