// CanHaveBody returns true if this method can have a body
331318
func CanHaveBody(method string) bool {
	mn := strings.ToUpper(method)
	return mn == "POST" || mn == "PUT" || mn == "PATCH" || mn == "DELETE"
}
739630
func (s *VoiceMessage) SetBody(v string) *VoiceMessage {
	s.Body = &v
	return s
}
726340
func (o *CreateOAuth2ClientParams) WithBody(body *models.Client) *CreateOAuth2ClientParams {
	o.SetBody(body)
	return o
}
456706
func (o *AddCommentToTaskParams) WithBody(body AddCommentToTaskBody) *AddCommentToTaskParams {
	o.SetBody(body)
	return o
}
36287
func (s *Secret) Body() string {
	s.Lock()
	defer s.Unlock()

	return s.body
}
832559
func (s *ImportRestApiInput) SetBody(v []byte) *ImportRestApiInput {
	s.Body = v
	return s
}
181901
func (r *Request) SetBody(body interface{}, gzipCompress bool) error {
	switch b := body.(type) {
	case string:
		if gzipCompress {
			return r.setBodyGzip(b)
		}
		return r.setBodyString(b)
	default:
		if gzipCompress {
			return r.setBodyGzip(body)
		}
		return r.setBodyJson(body)
	}
}
1109345
func (r *httpVPackRequest) SetBody(body ...interface{}) (driver.Request, error) {
	switch len(body) {
	case 0:
		return r, driver.WithStack(fmt.Errorf("Must provide at least 1 body"))
	case 1:
		if data, err := velocypack.Marshal(body[0]); err != nil {
			return r, driver.WithStack(err)
		} else {
			r.body = data
		}
		return r, nil
	case 2:
		mo := mergeObject{Object: body[1], Merge: body[0]}
		if data, err := velocypack.Marshal(mo); err != nil {
			return r, driver.WithStack(err)
		} else {
			r.body = data
		}
		return r, nil
	default:
		return r, driver.WithStack(fmt.Errorf("Must provide at most 2 bodies"))
	}

}
846497
func (p *PullRequestReviewRequest) GetBody() string {
	if p == nil || p.Body == nil {
		return ""
	}
	return *p.Body
}
295359
func (o *CreateJSONWebKeySetParams) WithBody(body *models.CreateRequest) *CreateJSONWebKeySetParams {
	o.SetBody(body)
	return o
}
415839
func (i *Issue) GetBody() string {
	if i == nil || i.Body == nil {
		return ""
	}
	return *i.Body
}
660500
func (r *Request) Body(v interface{}) *Request {
	var err error
	if r.err != nil {
		return r
	}
	r.body, err = json.Marshal(v)
	if err != nil {
		r.err = err
		return r
	}
	return r
}
41241
func (o *UpdateTaskParams) WithBody(body *models.Task) *UpdateTaskParams {
	o.SetBody(body)
	return o
}
914249
func IsBinaryBody(mailMsg *mail.Message) bool {
	if IsAttachment(mailMsg.Header) == true {
		return true
	}

	return !IsPlain(mailMsg.Header, true)
}
1182500
func (m *Message) HasBody() bool {
	mediaType, _, err := m.Header.ContentType()
	if err != nil && err != ErrHeadersMissingField {
		return false
	}
	return !strings.HasPrefix(mediaType, "multipart") && !strings.HasPrefix(mediaType, "message")
}
395841
func (s *ImportApiKeysInput) SetBody(v []byte) *ImportApiKeysInput {
	s.Body = v
	return s
}
1247987
func (s *GetExportOutput) SetBody(v []byte) *GetExportOutput {
	s.Body = v
	return s
}