Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Message

http.Message

 ref
:
Any
 is
[Contains abstract features]
HTTP message, can be a request or a response

Functions

 => 
String
[Redefinition of  Any.as_string]
String representation of the message header

redefines:

NYI: BUG: can only be called once
String representation of the whole message, i.e. header and body
 => 
io.Read_Handler
[Abstract feature]
NYI: BUG: can only be called once
body of the message, if it has one

NYI: CLEANUP: should probably be possible for body to be
array u8, nil or a specify an LM to read from.
The question is what do we need?
NYI: BUG: can only be called once
get the body of the message as a String
(max_body_bytes i32)
 => 
Sequence u8
NYI: BUG: can only be called once
the whole message as a sequence of bytes
header fields with all lower case
 => 
String
[Abstract feature]
the start line of the message, for requests it is the request line, for responses the status line
0.095dev (GIT hash 9b90842268531a946c757af94179ae191ec67720)