File: grpctool_extra.go

package info (click to toggle)
gitlab-agent 16.1.3-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 6,324 kB
  • sloc: makefile: 175; sh: 52; ruby: 3
file content (6 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
package grpctool

// IsRequestWithoutBody returns if the request the header belongs to is expected to have no body
func (x *HttpRequest_Header) IsRequestWithoutBody() bool {
	return x != nil && x.ContentLength != nil && *x.ContentLength == 0
}