request

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: 7 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 {
	message.HttpMessage
	Method      string
	Url         string
	Path        []string
	QueryParams map[string][]string
}

func Delete

func Delete(pathElements ...string) *HttpRequest

func Get

func Get(pathElements ...string) *HttpRequest
func Head(pathElements ...string) *HttpRequest

func Options

func Options(pathElements ...string) *HttpRequest

func Patch

func Patch(pathElements ...string) *HttpRequest

func Post

func Post(pathElements ...string) *HttpRequest

func Put

func Put(pathElements ...string) *HttpRequest

func Trace

func Trace(pathElements ...string) *HttpRequest

func (*HttpRequest) Authorization

func (request *HttpRequest) Authorization(value string) *HttpRequest

func (*HttpRequest) BaseUrl

func (request *HttpRequest) BaseUrl(baseUrl string) *HttpRequest

BaseUrl - While this should normally be configured only on the HTTP client, this is also allowed on the message so that a client can send a request to different targets. When used on a message passed to an HTTP server, it will do nothing.

func (*HttpRequest) Clone

func (request *HttpRequest) Clone() *HttpRequest

func (*HttpRequest) ContentType

func (request *HttpRequest) ContentType(value string) *HttpRequest

func (*HttpRequest) Equals

func (request *HttpRequest) Equals(other *HttpRequest) bool

func (*HttpRequest) Header

func (request *HttpRequest) Header(key string, value string) *HttpRequest

func (*HttpRequest) Payload

func (request *HttpRequest) Payload(payload string) *HttpRequest

func (*HttpRequest) QueryParam

func (request *HttpRequest) QueryParam(key string, values ...string) *HttpRequest

func (*HttpRequest) ToString

func (request *HttpRequest) ToString() string

Jump to

Keyboard shortcuts

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