Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chris-wood/ohttp-go
/ functions
Functions
98 in github.com/chris-wood/ohttp-go
⨍
Functions
98
◇
Types & classes
24
↓ 25 callers
Method
Marshal
()
bhttp.go:391
↓ 15 callers
Function
mustUnhex
(t *testing.T, h string)
ohttp_test.go:199
↓ 15 callers
Function
readVarintSlice
(b *bytes.Buffer)
bhttp.go:62
↓ 14 callers
Function
encodeVarintSlice
(b *bytes.Buffer, data []byte)
bhttp.go:57
↓ 12 callers
Function
NewConfig
(keyID uint8, kemID hpke.KEM, kdfID hpke.KDF, aeadID hpke.AEAD)
ohttp.go:105
↓ 11 callers
Method
Unmarshal
(b *bytes.Buffer)
bhttp.go:400
↓ 11 callers
Function
createRequestFromParts
(method string, url string, body []byte)
bhttp_test.go:70
↓ 8 callers
Function
mustHex
(d []byte)
ohttp_test.go:205
↓ 7 callers
Method
DecapsulateRequest
(req EncapsulatedRequest)
ohttp.go:503
↓ 7 callers
Method
EncapsulateRequest
(request []byte)
ohttp.go:325
↓ 7 callers
Function
NewDefaultGateway
(configs []PrivateConfig)
ohttp.go:456
↓ 6 callers
Method
DecapsulateResponse
(response EncapsulatedResponse)
ohttp.go:380
↓ 6 callers
Function
Write
Write writes a number in the QUIC varint format
varint.go:69
↓ 5 callers
Method
EncapsulateResponse
(response []byte)
ohttp.go:585
↓ 5 callers
Function
NewDefaultClient
(config PublicConfig)
ohttp.go:309
↓ 5 callers
Function
UnmarshalBinaryRequest
(data []byte)
bhttp.go:119
↓ 4 callers
Function
Read
Read reads a number in the QUIC varint format
varint.go:20
↓ 4 callers
Function
UnmarshalEncapsulatedRequest
(enc []byte)
ohttp.go:218
↓ 4 callers
Function
UnmarshalPublicConfig
(data []byte)
ohttp.go:131
↓ 4 callers
Function
createHeaderFields
(h http.Header)
bhttp.go:350
↓ 3 callers
Method
IsEqual
(o PublicConfig)
ohttp.go:34
↓ 3 callers
Function
createFullRequestFromParts
(method string, url string, headers map[string]string, trailers map[string]string, body []byte)
bhttp_test.go:53
↓ 3 callers
Function
createResponseFromParts
(statusCode int, headers map[string]string, trailers map[string]string, content []byte)
bhttp_test.go:339
↓ 3 callers
Function
fatalOnError
Infallible Serialize / Deserialize
ohttp_test.go:188
↓ 2 callers
Function
NewConfigFromSeed
(keyID uint8, kemID hpke.KEM, kdfID hpke.KDF, aeadID hpke.AEAD, seed []byte)
ohttp.go:74
↓ 2 callers
Function
NewCustomGateway
(configs []PrivateConfig, requestLabel, responseLabel string)
ohttp.go:466
↓ 2 callers
Function
UnmarshalFrameIndicator
(b io.ByteReader)
bhttp.go:49
↓ 2 callers
Function
createConfigMap
(configs []PrivateConfig)
ohttp.go:442
↓ 2 callers
Function
createRequestControlData
(r *BinaryRequest)
bhttp.go:267
↓ 2 callers
Function
encapsulateResponse
(context hpke.Opener, response, responseNonce []byte, enc []byte, suite hpke.Suite, responseLabel []byte)
ohttp.go:554
↓ 2 callers
Function
isProhibitedField
(fieldName string)
bhttp.go:33
↓ 2 callers
Function
max
(a, b int)
ohttp.go:547
↓ 2 callers
Function
verifyTestVectors
(t *testing.T, encoded []byte)
ohttp_test.go:431
↓ 1 callers
Method
Config
(keyID uint8)
ohttp.go:423
↓ 1 callers
Function
CreateBinaryResponse
(resp *http.Response)
bhttp.go:598
↓ 1 callers
Function
Len
Len determines the number of bytes that will be needed to write a number
varint.go:115
↓ 1 callers
Method
Marshal
()
ohttp.go:115
↓ 1 callers
Method
Marshal
()
bhttp.go:457
↓ 1 callers
Method
MarshalConfigs
()
ohttp.go:492
↓ 1 callers
Function
NewCustomClient
(config PublicConfig, requestLabel, responseLabel string)
ohttp.go:317
↓ 1 callers
Function
UnmarshalEncapsulatedResponse
(enc []byte)
ohttp.go:293
↓ 1 callers
Function
UnmarshalRequestControlData
(b *bytes.Buffer)
bhttp.go:287
↓ 1 callers
Method
encapsulateResponseWithResponseNonce
(response []byte, responseNonce []byte)
ohttp.go:599
↓ 1 callers
Function
generateTestVector
(t *testing.T, kemID hpke.KEM, kdfID hpke.KDF, aeadID hpke.AEAD)
ohttp_test.go:366
↓ 1 callers
Function
requestHeaderFields
(r *BinaryRequest)
bhttp.go:375
↓ 1 callers
Function
requestTrailerFields
(r *BinaryRequest)
bhttp.go:379
↓ 1 callers
Function
responseHeaderFields
(r *BinaryResponse)
bhttp.go:383
↓ 1 callers
Function
responseTrailerFields
(r *BinaryResponse)
bhttp.go:387
↓ 1 callers
Function
verifyTestVector
(t *testing.T, vector testVector)
ohttp_test.go:407
Function
BenchmarkRoundTrip
(b *testing.B)
ohttp_test.go:564
Method
Client
(keyID uint8)
ohttp.go:430
Method
Config
()
ohttp.go:66
Method
Marshal
Encapsulated Request { Key Identifier (8), KEM Identifier (16), KDF Identifier (16), AEAD Identifier (16), Encapsulated KEM Shared Secret (
ohttp.go:205
Method
Marshal
Encapsulated Response { Nonce (Nk), AEAD-Protected Response (..), }
ohttp.go:289
Method
Marshal
()
bhttp.go:43
Method
Marshal
Request with Known-Length { Framing Indicator (i) = 0, Request Control Data (..), Known-Length Field Section (..), Known-Length Content (..),
bhttp.go:87
Method
Marshal
()
bhttp.go:276
Method
Marshal
()
bhttp.go:329
Method
Marshal
()
bhttp.go:421
Method
Marshal
()
bhttp.go:467
Method
Marshal
Response with Known-Length { Framing Indicator (i) = 1, Known-Length Informational Response (..) ..., Final Response Control Data (..), Known
bhttp.go:482
Method
MarshalJSON
()
ohttp_test.go:261
Method
MarshalJSON
()
ohttp_test.go:318
Method
MarshalJSON
()
ohttp_test.go:350
Method
MatchesConfig
(req EncapsulatedRequest)
ohttp.go:487
Method
PrivateKey
()
ohttp.go:70
Function
TestConfigListSerialize
(t *testing.T)
ohttp_test.go:35
Function
TestConfigSerialize
(t *testing.T)
ohttp_test.go:23
Function
TestCustomRoundTrip
(t *testing.T)
ohttp_test.go:94
Function
TestEncodingMismatchFailure
(t *testing.T)
ohttp_test.go:149
Function
TestFieldListMarshal
(t *testing.T)
bhttp_test.go:219
Function
TestFieldMarshal
(t *testing.T)
bhttp_test.go:179
Function
TestGatewayMultipleConfigs
(t *testing.T)
ohttp_test.go:134
Function
TestGatewayMultipleConfigsDuplicateKeyId
(t *testing.T)
ohttp_test.go:122
Function
TestInvalidCiphersuiteInRequest
(t *testing.T)
ohttp_test.go:169
Function
TestRequestControlData
(t *testing.T)
bhttp_test.go:74
Function
TestRequestMarshal
(t *testing.T)
bhttp_test.go:249
Function
TestResponseMarshal
(t *testing.T)
bhttp_test.go:357
Function
TestRoundTrip
(t *testing.T)
ohttp_test.go:69
Function
TestSimpleRequest
(t *testing.T)
bhttp_test.go:13
Function
TestSimpleResponse
(t *testing.T)
bhttp_test.go:41
Function
TestTooLargeVarUint
(t *testing.T)
bhttp_test.go:426
Function
TestTruncation
(t *testing.T)
bhttp_test.go:433
Function
TestVectorGenerate
(t *testing.T)
ohttp_test.go:443
Function
TestVectorVerify
(t *testing.T)
ohttp_test.go:475
Method
Unmarshal
(b *bytes.Buffer)
bhttp.go:429
Function
UnmarshalBinaryResponse
(data []byte)
bhttp.go:519
Method
UnmarshalJSON
(data []byte)
ohttp_test.go:270
Method
UnmarshalJSON
(data []byte)
ohttp_test.go:329
Method
UnmarshalJSON
(data []byte)
ohttp_test.go:354
Function
UnmarshalResponseControlData
(b *bytes.Buffer)
bhttp.go:335
Function
WriteWithLen
WriteWithLen writes a number in the QUIC varint format, with the desired length.
varint.go:87
Function
createResponseControlData
(r *BinaryResponse)
bhttp.go:323
Function
disableTestDraftVector
(t *testing.T)
ohttp_test.go:489
Function
mustDeserializePriv
(t *testing.T, suite hpke.Suite, h string, required bool)
ohttp_test.go:209
Function
mustDeserializePub
(t *testing.T, suite hpke.Suite, h string, required bool)
ohttp_test.go:227
Function
mustSerializePriv
(suite hpke.Suite, priv kem.PrivateKey)
ohttp_test.go:219
Function
mustSerializePub
(suite hpke.Suite, pub kem.PublicKey)
ohttp_test.go:237