Things we did:
- Request API
- Wrote a couple helper methods for finding associated and current url, given a url list.
- Started writing constructor step 13.
- Headers API
- Finished up the remaining functions defined in the webidl. My job was made easier because I don’t need to implement
iterable<ByteString, ByteString>
just quite yet.
- Finished up the remaining functions defined in the webidl. My job was made easier because I don’t need to implement
Things we learned:
- Even though the result of the two code blocks below are the same in practice, it’s only due to the rust optimizer.
This first version only ever deals with one memory location on the stack
This second version instructs Rust to create two memory locations for each valid_name
. Only due to the Rust optimizer does the computer realize that it can reuse the same spot.
- When returning a reference to a
RefCell
, wrap the content withRef
which can be done throughRef::map
.
TODO:
- Headers:
- Submit PR after final tests and squashing commits
- Response:
- If Headers is accepted, start working on Response.
- Request:
- Continue with constructor!