response_message
http.response_message
HTTP response message
Fields
NYI: CLEANUP: remove this arg?
the request message for which this response was generated
the request message for which this response was generated
the header fields
the body of the response
Functions
String representation of the message header
String representation of the whole message, i.e. header and body
get the body of the message as a String
the whole message as a sequence of bytes
the start line of the message, for a response this is also called status line
the status line of the response message
Type Features
(status_code i32, header Sequence (tuple String String), body Unary (choice (Sequence u8) io.end_of_file error) i32) => http.response_message¶
(status_code i32, header Sequence (tuple String String), body Unary (choice (Sequence u8) io.end_of_file error) i32)
=>
http.response_message¶create an http response using a default values
request_message => nil
major => 1
minor => 1
reason_phrase via status code from reason phrases map
request_message => nil
major => 1
minor => 1
reason_phrase via status code from reason phrases map
(req option http.request_message, version_major i32, version_minor i32, status_code i32, reason_phrase String, header Sequence (tuple String String), body Unary (choice (Sequence u8) io.end_of_file error) i32) => http.response_message¶
(req option http.request_message, version_major i32, version_minor i32, status_code i32, reason_phrase String, header Sequence (tuple String String), body Unary (choice (Sequence u8) io.end_of_file error) i32)
=>
http.response_message¶0.099dev (GIT hash 250922c42fb1dcef5ce7ce89820538f53498ca37)