finished -setupHTTP Swift equivalent

need to implement the request handlers