Expect Bytes with Http
Expect the response body to be binary data.
import Bytes exposing (Bytes) import Http import Http.Just type Msg = GotBytes (Result Http.Error Bytes) getBytes : Cmd Msg getBytes = Http.get { url = "/bytes" , expect = Http.Just.expectBytes GotBytes }
Expect the response body to be binary data.