1

I am a student building a http proxy server. I want to cache those requests that are frequently accessed. May I get any idea about this? Especially in java.

1 Answer 1

1

To figure out what you need to implement, read and understand the HTTP specification. Focus particularly on the sections on how a proxy is supposed to behave.

You could possibly base part of the implementation on the Apache HttpClient library, but I have a feeling that the APIs will prove to be unsuitable for the proxy server use-case.

I'd also like to point out that a more practical way to implement an HTTP proxy server would be to simply deploy an existing server like Squid.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.