@@ -0,0 +1,102 @@
+import Foundation
+import RxSwift
+
+enum NetworkError: Error, LocalizedError {
+    case statusCodeError
+    case unknownError
+    case urlIsNil
+    
+    var errorDescription: String? {
+        switch self {
+        case .statusCodeError:
+            return "정상적인 StatusCode가 아닙니다."
+        case .unknownError:
+            return "알수 없는 에러가 발생했습니다."
+        case .urlIsNil:
+            return "정상적인 URL이 아닙니다."
+        }
+    }
+}
+
+struct NetworkProvider {
+    private let session: URLSessionProtocol
+    private let disposeBag = DisposeBag()
+    
+    init(session: URLSessionProtocol = URLSession.shared) {
+        self.session = session
+    }
+    
+    private func loadData(request: URLRequest) -> Observable<Data> {
+        return Observable.create { emitter in
+            let task = session.dataTask(with: request) { data, response, _ in
+                let successStatusCode = 200..<300
+                guard let httpResponse = response as? HTTPURLResponse,
+                      successStatusCode.contains(httpResponse.statusCode) else {
+                          emitter.onError(NetworkError.statusCodeError)
+                          return
+                      }
+                
+                if let data = data {
+                    emitter.onNext(data)
+                }
+                
+                emitter.onCompleted()
+            }
+            task.resume()
+            
+            return Disposables.create {
+                task.cancel()
+            }
+        }
+    }
+    
+    func request(api: APIProtocol) -> Observable<Data> {
+        return Observable.create { emitter in
+            guard let urlRequest = URLRequest(api: api) else {
+                emitter.onError(NetworkError.urlIsNil)
+                return Disposables.create()
+            }
+            
+            _ = loadData(request: urlRequest)
+                .subscribe { event in
+                    switch event {
+                    case .next(let data):
+                        emitter.onNext(data)
+                    case .error(let error):
+                        emitter.onError(error)
+                    case .completed:
+                        emitter.onCompleted()
+                    }
+                    emitter.onCompleted()
+                }
+                .disposed(by: disposeBag)
+            
+            return Disposables.create()
+        }
+    }
+    
+    func fetchData<T: Codable>(api: Gettable, decodingType: T.Type) -> Observable<T> {
+        return Observable.create { emitter in
+            _ = request(api: api)
+                .debug()  // FIXME: 없으면 products가 nil이 됨
+                .subscribe { event in
+                switch event {
+                case .next(let data):
+                    guard let decodedData = JSONParser<T>().decode(from: data) else {
+                        emitter.onError(JSONParserError.decodingFail)
+                        return
+                    }
+                    emitter.onNext(decodedData)
+                case .error(let error):
+                    emitter.onError(error)
+                case .completed:
+                    emitter.onCompleted()
+                }
+                emitter.onCompleted()
+            }
+            .disposed(by: disposeBag)
+            
+            return Disposables.create()
+        }
+    }
+}

리뷰: Observable.create 가 필요하지 않아보입니다.