Closed RangerMauve closed 1 month ago
For android we might need to find an HTTP library which can be passed a socket instance or write a library ourselves :skull:
https://stackoverflow.com/questions/10673684/send-http-request-manually-via-socket
Worst case we can ditch http and do a custom protocol
If the http path doesn't work out we could use protocol buffers with some adhoc rpc protocol. or maybe json rpc?
Alternately we can use gRPC
https://github.com/grpc/grpc-swift
Phase 2 done: https://github.com/OpenArchive/save-android
Richard ended up going with HTTP for part 2 anyway and just implemented the HTTP connection over sockets manually.
We need to lay the foundation for doing rpc between the backend and the frontend. One approach would be to make use of unix domain sockets to register a listener on the backend and send requests to it on the frontend.
Phase 1: Rust unix domain registration
Phase 2: Mobile connection
Phase 3: HTTP over unix domain socket
200
andHello World
in the body