Skip to main content

read_startup

Function read_startup 

Source
pub async fn read_startup<R>(
    stream: &mut R,
) -> Result<FrontendMessage, PgWireError>
where R: AsyncRead + Unpin,
Expand description

Read the initial StartupMessage (or SSL/GSS request). The startup frame has no type byte — just a length prefix followed by the payload. Returns either a decoded Startup/SSL/GSS message or an error.