Documentation ¶
Index ¶
- type HttpResponse
- func (response *HttpResponse) Clone() *HttpResponse
- func (response *HttpResponse) ContentType(value string) *HttpResponse
- func (response *HttpResponse) ETag(value string) *HttpResponse
- func (response *HttpResponse) Equals(other *HttpResponse) bool
- func (response *HttpResponse) Header(key string, value string) *HttpResponse
- func (response *HttpResponse) Payload(payload string) *HttpResponse
- func (response *HttpResponse) ToString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpResponse ¶
type HttpResponse struct { message.HttpMessage StatusCode int }
func Response ¶
func Response(statusCode int) *HttpResponse
func (*HttpResponse) Clone ¶
func (response *HttpResponse) Clone() *HttpResponse
func (*HttpResponse) ContentType ¶
func (response *HttpResponse) ContentType(value string) *HttpResponse
func (*HttpResponse) ETag ¶
func (response *HttpResponse) ETag(value string) *HttpResponse
func (*HttpResponse) Equals ¶
func (response *HttpResponse) Equals(other *HttpResponse) bool
func (*HttpResponse) Header ¶
func (response *HttpResponse) Header(key string, value string) *HttpResponse
func (*HttpResponse) Payload ¶
func (response *HttpResponse) Payload(payload string) *HttpResponse
func (*HttpResponse) ToString ¶
func (response *HttpResponse) ToString() string
Click to show internal directories.
Click to hide internal directories.