Pudu programming language
Menu

Std.Http.Server.Reply.text

1 declaration

fn

text: Int -> Str -> Std.Http.Response

This is a callable function.

What it does

The answers a handler gives, apart from the routing that chose it and the

connection that carries it.

Separated because a reply is the one part of serving that a program builds

without a request in hand: a test naming an expected response, a middleware

refusing one, and a handler answering one all want these and none of them

wants a server.

A response carrying text.

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.

Back to Std.Http.Server.ReplySearch related declarations