huixing
huixing

Reputation: 431

How to create a Proxy Server using Swift Perfect Framework?

I want to use Swift Perfect Framework to make a proxy server. My idea is following:

  1. get the request's url ,header.etc informations.
  2. use the informations to create new request.
  3. get response from the new request.and use the response's information to set the origin request's response.

My Question is how can I make a new request using Swift Perfect Framework? Or I need to use other Framework.

Upvotes: 1

Views: 244

Answers (1)

PerfectlyRock
PerfectlyRock

Reputation: 413

you can use CURLRequest of Perfect-CURL to perform the actual request and send it back to the response once received something.

Upvotes: 1

Related Questions