response_message
http.response_message
response_message:Message is[Private constructor]¶[src]
HTTP response message
Fields
req option http.request_message¶[src]
NYI: CLEANUP: remove this arg?
the request message for which this response was generated
the request message for which this response was generated
version_major i64¶[src]
the major version
version_minor i64¶[src]
the minor version
status_code i64¶[src]
the status code of the response
reason_phrase String¶[src]
the reason-phrase of the response
header container.Map String String[Redefinition of http.Message.header]¶[src]
the header fields
body Unary (choice (Sequence u8) io.end_of_file error) i64[Redefinition of http.Message.body]¶[src]
the body of the response
Functions
as_string_with_body(max_body_bytes i64) => outcome String[Inherited from Message]¶[src]
String representation of the whole message, i.e. header and body
body_as_string => outcome String[Inherited from Message]¶[src]
get the body of the message as a String
bytes(max_body_bytes i64) => Sequence u8[Inherited from Message]¶[src]
the whole message as a sequence of bytes
start_line => String[Redefinition of http.Message.start_line]¶[src]
the start line of the message, for a response this is also called status line
status_line => String¶[src]
the status line of the response message
Type Features
type.new(status_code i64,header Sequence (tuple String String),body Unary (choice (Sequence u8) io.end_of_file error) i64) => http.response_message¶[src]
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
type.new(req option http.request_message,version_major i64,version_minor i64,status_code i64,reason_phrase String,header Sequence (tuple String String),body Unary (choice (Sequence u8) io.end_of_file error) i64) => http.response_message¶[src]
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)