model

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRequest

type HttpRequest struct {
	Method string
	Url    string
	Header http.Header
	Body   []byte
}

func (HttpRequest) MarshalEasyJSON

func (v HttpRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HttpRequest) MarshalJSON

func (v HttpRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HttpRequest) UnmarshalEasyJSON

func (v *HttpRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HttpRequest) UnmarshalJSON

func (v *HttpRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HttpResponse

type HttpResponse struct {
	Status     string // e.g. "200 OK"
	StatusCode int    // e.g. 200
	Proto      string // e.g. "HTTP/1.0"
	Header     http.Header
	Body       []byte
}

func (HttpResponse) MarshalEasyJSON

func (v HttpResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (HttpResponse) MarshalJSON

func (v HttpResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*HttpResponse) UnmarshalEasyJSON

func (v *HttpResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*HttpResponse) UnmarshalJSON

func (v *HttpResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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