Pudu programming language
Menu
API reference

Std.Http.Safe.headerWritable

1 declaration

fn

headerWritable: Str -> Str -> Result[(), Std.Http.Safe.Unsafe]

This is a callable function.

What it does

Whether a header may be written as it stands.

A carriage return or line feed would end the header and begin whatever

followed it, which is a response the sender did not write. Refused rather

than escaped: escaping guesses at an intent, and no legitimate value

contains one.

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.
  • Names inside [ ] are type arguments, such as the item type held by a collection.
  • Result makes success and recoverable failure part of the function's type.

Back to Std.Http.SafeSearch related declarations