Pudu programming language
Menu

Std.Http.Server.Socket.encode

1 declaration

fn

encode: &Std.Http.Server.Socket.Message -> Bytes

This is a callable function.

What it does

A frame to send to the far end.

Never masked. What this end sends is not masked and what it receives must

be, which is what the protocol requires and what stops a crafted message

being read as a request by something between the two ends.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.Http.Server.SocketSearch related declarations