Documentation ¶
Index ¶
- type Message
- func (r *Message) Accept() (message.MediaType, error)
- func (r *Message) AddOptionBytes(opt message.OptionID, value []byte)
- func (r *Message) AddOptionString(opt message.OptionID, value string)
- func (r *Message) AddOptionUint32(opt message.OptionID, value uint32)
- func (r *Message) AddQuery(query string)
- func (r *Message) Body() io.ReadSeeker
- func (r *Message) BodySize() (int64, error)
- func (r *Message) Code() codes.Code
- func (r *Message) ContentFormat() (message.MediaType, error)
- func (r *Message) ETag() ([]byte, error)
- func (r *Message) GetETag() ([]byte, error)
- func (r *Message) GetOptionBytes(id message.OptionID) ([]byte, error)
- func (r *Message) GetOptionUint32(id message.OptionID) (uint32, error)
- func (r *Message) HasOption(id message.OptionID) bool
- func (r *Message) Hijack()
- func (r *Message) IsHijacked() bool
- func (r *Message) IsModified() bool
- func (r *Message) Observe() (uint32, error)
- func (r *Message) Options() message.Options
- func (r *Message) ReadBody() ([]byte, error)
- func (r *Message) Remove(opt message.OptionID)
- func (r *Message) Reset()
- func (r *Message) ResetOptionsTo(in message.Options)
- func (r *Message) Sequence() uint64
- func (r *Message) SetAccept(contentFormat message.MediaType)
- func (r *Message) SetBody(s io.ReadSeeker)
- func (r *Message) SetCode(code codes.Code)
- func (r *Message) SetContentFormat(contentFormat message.MediaType)
- func (r *Message) SetETag(value []byte)
- func (r *Message) SetObserve(observe uint32)
- func (r *Message) SetOptionBytes(opt message.OptionID, value []byte)
- func (r *Message) SetOptionString(opt message.OptionID, value string)
- func (r *Message) SetOptionUint32(opt message.OptionID, value uint32)
- func (r *Message) SetPath(p string)
- func (r *Message) SetSequence(seq uint64)
- func (r *Message) SetToken(token message.Token)
- func (r *Message) String() string
- func (r *Message) Token() message.Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func NewMessage() *Message
func (*Message) AddOptionBytes ¶
func (*Message) AddOptionString ¶
func (*Message) AddOptionUint32 ¶
func (*Message) Body ¶
func (r *Message) Body() io.ReadSeeker
func (*Message) GetOptionBytes ¶
func (*Message) GetOptionUint32 ¶
func (*Message) IsHijacked ¶
func (*Message) IsModified ¶
func (*Message) ResetOptionsTo ¶
func (*Message) SetBody ¶
func (r *Message) SetBody(s io.ReadSeeker)
func (*Message) SetContentFormat ¶
func (*Message) SetObserve ¶
func (*Message) SetOptionBytes ¶
func (*Message) SetOptionString ¶
func (*Message) SetOptionUint32 ¶
func (*Message) SetSequence ¶
Click to show internal directories.
Click to hide internal directories.