MCPcopy Create free account

hub / github.com/chris-wood/ohttp-go / functions

Functions98 in github.com/chris-wood/ohttp-go

↓ 25 callersMethodMarshal
()
bhttp.go:391
↓ 15 callersFunctionmustUnhex
(t *testing.T, h string)
ohttp_test.go:199
↓ 15 callersFunctionreadVarintSlice
(b *bytes.Buffer)
bhttp.go:62
↓ 14 callersFunctionencodeVarintSlice
(b *bytes.Buffer, data []byte)
bhttp.go:57
↓ 12 callersFunctionNewConfig
(keyID uint8, kemID hpke.KEM, kdfID hpke.KDF, aeadID hpke.AEAD)
ohttp.go:105
↓ 11 callersMethodUnmarshal
(b *bytes.Buffer)
bhttp.go:400
↓ 11 callersFunctioncreateRequestFromParts
(method string, url string, body []byte)
bhttp_test.go:70
↓ 8 callersFunctionmustHex
(d []byte)
ohttp_test.go:205
↓ 7 callersMethodDecapsulateRequest
(req EncapsulatedRequest)
ohttp.go:503
↓ 7 callersMethodEncapsulateRequest
(request []byte)
ohttp.go:325
↓ 7 callersFunctionNewDefaultGateway
(configs []PrivateConfig)
ohttp.go:456
↓ 6 callersMethodDecapsulateResponse
(response EncapsulatedResponse)
ohttp.go:380
↓ 6 callersFunctionWrite
Write writes a number in the QUIC varint format
varint.go:69
↓ 5 callersMethodEncapsulateResponse
(response []byte)
ohttp.go:585
↓ 5 callersFunctionNewDefaultClient
(config PublicConfig)
ohttp.go:309
↓ 5 callersFunctionUnmarshalBinaryRequest
(data []byte)
bhttp.go:119
↓ 4 callersFunctionRead
Read reads a number in the QUIC varint format
varint.go:20
↓ 4 callersFunctionUnmarshalEncapsulatedRequest
(enc []byte)
ohttp.go:218
↓ 4 callersFunctionUnmarshalPublicConfig
(data []byte)
ohttp.go:131
↓ 4 callersFunctioncreateHeaderFields
(h http.Header)
bhttp.go:350
↓ 3 callersMethodIsEqual
(o PublicConfig)
ohttp.go:34
↓ 3 callersFunctioncreateFullRequestFromParts
(method string, url string, headers map[string]string, trailers map[string]string, body []byte)
bhttp_test.go:53
↓ 3 callersFunctioncreateResponseFromParts
(statusCode int, headers map[string]string, trailers map[string]string, content []byte)
bhttp_test.go:339
↓ 3 callersFunctionfatalOnError
Infallible Serialize / Deserialize
ohttp_test.go:188
↓ 2 callersFunctionNewConfigFromSeed
(keyID uint8, kemID hpke.KEM, kdfID hpke.KDF, aeadID hpke.AEAD, seed []byte)
ohttp.go:74
↓ 2 callersFunctionNewCustomGateway
(configs []PrivateConfig, requestLabel, responseLabel string)
ohttp.go:466
↓ 2 callersFunctionUnmarshalFrameIndicator
(b io.ByteReader)
bhttp.go:49
↓ 2 callersFunctioncreateConfigMap
(configs []PrivateConfig)
ohttp.go:442
↓ 2 callersFunctioncreateRequestControlData
(r *BinaryRequest)
bhttp.go:267
↓ 2 callersFunctionencapsulateResponse
(context hpke.Opener, response, responseNonce []byte, enc []byte, suite hpke.Suite, responseLabel []byte)
ohttp.go:554
↓ 2 callersFunctionisProhibitedField
(fieldName string)
bhttp.go:33
↓ 2 callersFunctionmax
(a, b int)
ohttp.go:547
↓ 2 callersFunctionverifyTestVectors
(t *testing.T, encoded []byte)
ohttp_test.go:431
↓ 1 callersMethodConfig
(keyID uint8)
ohttp.go:423
↓ 1 callersFunctionCreateBinaryResponse
(resp *http.Response)
bhttp.go:598
↓ 1 callersFunctionLen
Len determines the number of bytes that will be needed to write a number
varint.go:115
↓ 1 callersMethodMarshal
()
ohttp.go:115
↓ 1 callersMethodMarshal
()
bhttp.go:457
↓ 1 callersMethodMarshalConfigs
()
ohttp.go:492
↓ 1 callersFunctionNewCustomClient
(config PublicConfig, requestLabel, responseLabel string)
ohttp.go:317
↓ 1 callersFunctionUnmarshalEncapsulatedResponse
(enc []byte)
ohttp.go:293
↓ 1 callersFunctionUnmarshalRequestControlData
(b *bytes.Buffer)
bhttp.go:287
↓ 1 callersMethodencapsulateResponseWithResponseNonce
(response []byte, responseNonce []byte)
ohttp.go:599
↓ 1 callersFunctiongenerateTestVector
(t *testing.T, kemID hpke.KEM, kdfID hpke.KDF, aeadID hpke.AEAD)
ohttp_test.go:366
↓ 1 callersFunctionrequestHeaderFields
(r *BinaryRequest)
bhttp.go:375
↓ 1 callersFunctionrequestTrailerFields
(r *BinaryRequest)
bhttp.go:379
↓ 1 callersFunctionresponseHeaderFields
(r *BinaryResponse)
bhttp.go:383
↓ 1 callersFunctionresponseTrailerFields
(r *BinaryResponse)
bhttp.go:387
↓ 1 callersFunctionverifyTestVector
(t *testing.T, vector testVector)
ohttp_test.go:407
FunctionBenchmarkRoundTrip
(b *testing.B)
ohttp_test.go:564
MethodClient
(keyID uint8)
ohttp.go:430
MethodConfig
()
ohttp.go:66
MethodMarshal
Encapsulated Request { Key Identifier (8), KEM Identifier (16), KDF Identifier (16), AEAD Identifier (16), Encapsulated KEM Shared Secret (
ohttp.go:205
MethodMarshal
Encapsulated Response { Nonce (Nk), AEAD-Protected Response (..), }
ohttp.go:289
MethodMarshal
()
bhttp.go:43
MethodMarshal
Request with Known-Length { Framing Indicator (i) = 0, Request Control Data (..), Known-Length Field Section (..), Known-Length Content (..),
bhttp.go:87
MethodMarshal
()
bhttp.go:276
MethodMarshal
()
bhttp.go:329
MethodMarshal
()
bhttp.go:421
MethodMarshal
()
bhttp.go:467
MethodMarshal
Response with Known-Length { Framing Indicator (i) = 1, Known-Length Informational Response (..) ..., Final Response Control Data (..), Known
bhttp.go:482
MethodMarshalJSON
()
ohttp_test.go:261
MethodMarshalJSON
()
ohttp_test.go:318
MethodMarshalJSON
()
ohttp_test.go:350
MethodMatchesConfig
(req EncapsulatedRequest)
ohttp.go:487
MethodPrivateKey
()
ohttp.go:70
FunctionTestConfigListSerialize
(t *testing.T)
ohttp_test.go:35
FunctionTestConfigSerialize
(t *testing.T)
ohttp_test.go:23
FunctionTestCustomRoundTrip
(t *testing.T)
ohttp_test.go:94
FunctionTestEncodingMismatchFailure
(t *testing.T)
ohttp_test.go:149
FunctionTestFieldListMarshal
(t *testing.T)
bhttp_test.go:219
FunctionTestFieldMarshal
(t *testing.T)
bhttp_test.go:179
FunctionTestGatewayMultipleConfigs
(t *testing.T)
ohttp_test.go:134
FunctionTestGatewayMultipleConfigsDuplicateKeyId
(t *testing.T)
ohttp_test.go:122
FunctionTestInvalidCiphersuiteInRequest
(t *testing.T)
ohttp_test.go:169
FunctionTestRequestControlData
(t *testing.T)
bhttp_test.go:74
FunctionTestRequestMarshal
(t *testing.T)
bhttp_test.go:249
FunctionTestResponseMarshal
(t *testing.T)
bhttp_test.go:357
FunctionTestRoundTrip
(t *testing.T)
ohttp_test.go:69
FunctionTestSimpleRequest
(t *testing.T)
bhttp_test.go:13
FunctionTestSimpleResponse
(t *testing.T)
bhttp_test.go:41
FunctionTestTooLargeVarUint
(t *testing.T)
bhttp_test.go:426
FunctionTestTruncation
(t *testing.T)
bhttp_test.go:433
FunctionTestVectorGenerate
(t *testing.T)
ohttp_test.go:443
FunctionTestVectorVerify
(t *testing.T)
ohttp_test.go:475
MethodUnmarshal
(b *bytes.Buffer)
bhttp.go:429
FunctionUnmarshalBinaryResponse
(data []byte)
bhttp.go:519
MethodUnmarshalJSON
(data []byte)
ohttp_test.go:270
MethodUnmarshalJSON
(data []byte)
ohttp_test.go:329
MethodUnmarshalJSON
(data []byte)
ohttp_test.go:354
FunctionUnmarshalResponseControlData
(b *bytes.Buffer)
bhttp.go:335
FunctionWriteWithLen
WriteWithLen writes a number in the QUIC varint format, with the desired length.
varint.go:87
FunctioncreateResponseControlData
(r *BinaryResponse)
bhttp.go:323
FunctiondisableTestDraftVector
(t *testing.T)
ohttp_test.go:489
FunctionmustDeserializePriv
(t *testing.T, suite hpke.Suite, h string, required bool)
ohttp_test.go:209
FunctionmustDeserializePub
(t *testing.T, suite hpke.Suite, h string, required bool)
ohttp_test.go:227
FunctionmustSerializePriv
(suite hpke.Suite, priv kem.PrivateKey)
ohttp_test.go:219
FunctionmustSerializePub
(suite hpke.Suite, pub kem.PublicKey)
ohttp_test.go:237