MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / NewResponse

Function NewResponse

message.go:116–122  ·  view source on GitHub ↗

NewResponse creates a new response message Use DefaultVersion as a first argument, if you don't

(v Version, status Status, id uint32)

Source from the content-addressed store, hash-verified

114//
115// Use DefaultVersion as a first argument, if you don't
116func NewResponse(v Version, status Status, id uint32) *Message {
117 return &Message{
118 Version: v,
119 Code: Code(status),
120 RequestID: id,
121 }
122}
123
124// NewMessageWithGroups creates a new message with Groups of
125// attributes.

Callers 2

TestNewRequestResponseFunction · 0.85
TestTagExtensionFunction · 0.85

Calls 1

CodeTypeAlias · 0.85

Tested by 2

TestNewRequestResponseFunction · 0.68
TestTagExtensionFunction · 0.68