httpClientSym

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddHttpRequestHeader = func(clientId uint32, requestId uint32,
	key string,
	value string,
) (error errno.Error) {
	return 0
}
View Source
var CloseHttpResponseBody = func(clientId uint32, requestId uint32) (error errno.Error) {
	return 0
}
View Source
var DeleteHttpRequestHeader = func(clientId uint32, requestId uint32,
	key string,
) (error errno.Error) {
	return 0
}
View Source
var DoHttpRequest = func(clientId uint32, requestId uint32) (error errno.Error) {
	return 0
}
View Source
var GetHttpRequestHeader = func(clientId uint32, requestId uint32,
	key string,
	headerPtr *byte,
) (error errno.Error) {
	return 0
}
View Source
var GetHttpRequestHeaderKeys = func(clientId uint32, requestId uint32,
	headerPtr *byte, headerSize uint32,
) (error errno.Error) {
	return 0
}
View Source
var GetHttpRequestHeaderKeysSize = func(clientId uint32, requestId uint32,
	sizePtr *uint32,
) (error errno.Error) {
	return 0
}
View Source
var GetHttpRequestHeaderSize = func(clientId uint32, requestId uint32,
	key string,
	sizePtr *uint32,
) (error errno.Error) {
	return 0
}
View Source
var GetHttpRequestMethod = func(clientId uint32, requestId uint32, methodPtr *uint32) (error errno.Error) {
	return 0
}
View Source
var NewHttpClient = func(clientId *uint32) (error errno.Error) {
	return 0
}
View Source
var NewHttpRequest = func(clientId uint32, requestIdPtr *uint32) (error errno.Error) {
	return 0
}
View Source
var ReadHttpResponseBody = func(clientId uint32, requestId uint32, buf *byte, bufSize uint32, countPtr *uint32) (error errno.Error) {
	return 0
}
View Source
var SetHttpRequestBody = func(clientId uint32, requestId uint32, data *byte, dataSize uint32) (error errno.Error) {
	return 0
}
View Source
var SetHttpRequestHeader = func(clientId uint32, requestId uint32,
	key string,
	valuesPtr *byte, valuesSize uint32,
) (error errno.Error) {
	return 0
}
View Source
var SetHttpRequestMethod = func(clientId uint32, requestId uint32, method uint32) (error errno.Error) {
	return 0
}
View Source
var SetHttpRequestURL = func(clientId uint32, requestId uint32, url string) (error errno.Error) {
	return 0
}

Functions

func MockBody

func MockBody(m *MockData)

func MockHeaders

func MockHeaders(testClientId uint32, testRequestId uint32, testHeaders map[string][]string)

func MockMethod

func MockMethod(testClientId, testRequestId uint32, setPtr *string)

func MockNewClient

func MockNewClient(testId uint32)

func MockNewRequest

func MockNewRequest(testClientId uint32, testRequestId uint32)

func MockNewRequestURL

func MockNewRequestURL(testClientId uint32, testRequestId uint32, testURL string)

func MockResponse

func MockResponse(testClientId, testRequestId uint32, responseBody io.Reader)

Types

type MockData

type MockData struct {
	ClientId      uint32
	RequestId     uint32
	RequestUrl    string
	RequestMethod *string
	RequestBody   []byte
	ResponseBody  []byte
	Headers       map[string][]string
}

func (MockData) Mock

func (_m MockData) Mock() *MockData

Jump to

Keyboard shortcuts

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