response

package
v0.0.0-...-87f11ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL