func (cli *Client) post(ctx context.Context, path string, query url.Values, obj interface{}, headers map[string][]string) (serverResponse, error) {
	body, headers, err := encodeBody(obj, headers)
	if err != nil {
		return serverResponse{}, err
	}
	return cli.sendRequest(ctx, "POST", path, query, body, headers)
}
// post sends an http request to the docker API using the method POST with a specific Go context.
post sends an http request to the docker API using the method POST with a specific Go context.
// post sends an http request to the docker API using the method POST with a specific Go context .
func (cli *Client) post(ctx context.Context, path string, query url.Values, obj interface{}, headers map[string][]string) (serverResponse, error) {
	body, headers, err := encodeBody(obj, headers)
	if err != nil {
		return serverResponse{}, err
	}
	return cli.sendRequest(ctx, "POST", path, query, body, headers)
}
func ( cli * Client ) post ( ctx context . Context , path string , query url . Values , obj interface { } , headers map [ string ] [ ] string ) ( serverResponse , error ) { body , headers , err := encodeBody ( obj , headers ) if err != nil { return serverResponse { } , err } return cli . sendRequest ( ctx , " " , path , query , body , headers ) }
post sends an http request to the docker API using the method POST with a specific Go context.
post sends an http request to the docker API using the method POST with a specific Go context .