in kinto/client.go [360:375]
func (c *Client) BatchMaxRequests() (int, error) {
answer := struct {
Settings struct {
BatchMaxRequests int `json:"batch_max_requests"`
} `json:"settings"`
}{}
r, err := c.newRequest(http.MethodGet, "/", nil)
if err != nil {
return 0, err
}
err = c.do(r, &answer, map[int]bool{200: true})
if err != nil {
return 0, err
}
return answer.Settings.BatchMaxRequests, nil
}