httpClientSym

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT 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 GetHttpResponseHeader = func(clientId uint32, requestId uint32,
	key string,
	headerPtr *byte,
) (error errno.Error) {
	return 0
}
View Source
var GetHttpResponseHeaderKeys = func(clientId uint32, requestId uint32,
	headerPtr *byte, headerSize uint32,
) (error errno.Error) {
	return 0
}
View Source
var GetHttpResponseHeaderKeysSize = func(clientId uint32, requestId uint32,
	sizePtr *uint32,
) (error errno.Error) {
	return 0
}
View Source
var GetHttpResponseHeaderSize = func(clientId uint32, requestId uint32,
	key string,
	sizePtr *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 MockHeadersAdd added in v0.1.6

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

func MockHeadersGet added in v0.1.6

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

func MockHeadersGetKeys added in v0.1.6

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

func MockHeadersSet added in v0.1.6

func MockHeadersSet(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)

func MockResponseHeaders added in v0.2.1

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

func MockResponseHeadersGet added in v0.2.1

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

func MockResponseHeadersGetKeys added in v0.2.1

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

Types

type MockData

type MockData struct {
	ClientId        uint32
	RequestId       uint32
	RequestUrl      string
	RequestMethod   *string
	RequestBody     []byte
	ResponseBody    []byte
	Headers         map[string][]string
	ResponseHeaders 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