For the requirement of strainer inline the tapered basket strainer is being used. Where the shape of the strainer is tapered as per the photograph.

Tapered Strainer