Rewrite structure

Removed TypeOfRequst and rewritten to two proxy functions get and post.