MCPcopy Create free account
hub / github.com/Effect-TS/effect / encodeSslRequest

Function encodeSslRequest

packages/sql/pg/src/PgProtocol.ts:1166–1171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1164 * @since 4.0.0
1165 */
1166export const encodeSslRequest = (): Uint8Array => {
1167 sharedWriter.begin()
1168 sharedWriter.int32(8)
1169 sharedWriter.int32(SSL_REQUEST_CODE)
1170 return sharedWriter.finish()
1171}
1172
1173/**
1174 * Decodes the single byte the server sends in reply to an `SSLRequest`. `"S"`

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
int32Method · 0.45
finishMethod · 0.45

Tested by

no test coverage detected