EC2 IMDS includes X-Aws-Ec2-Metadata-Token-Ttl-Seconds header in the response to PUT /latest/api/token. To enable Firecracker MMDS to behave compatibly with EC2 IMDS, allow to set custom headers in HTTP response. Signed-off-by: Takahiro Itazuri <itazur@amazon.com>
768 B
768 B
Unreleased
Added
- Implemented
Eqforcommon::headers::Encoding,common::headers::MediaType,common::headers::Headers,common::HttpHeaderError,common::Body,common::Version,common::RequestError,request::Uri,request::RequestLine,response::StatusCode,response::ResponseHeaders - Allowed to set custom headers in HTTP responses.
Changed
- Mark
HttpServer::new_from_fdasunsafeas the correctness of the unsafe code in this method relies on an invariant the caller has to uphold - Always set 'Content-Length' in non-100/204 responses regardless of whether the body is empty. Otherwise, the client waits for the server to close the connection or for timeout to occur.
v0.1.0
- micro-http v0.1.0 first release.