Get() public méthode

public Get ( string localPath ) : ResponseFile
localPath string
Résultat ResponseFile
        private void ProcessGetRequest(HttpListenerRequest request, HttpListenerResponse response)
        {
            try
            {
                var localPath = GetLocalPath(request);
                if (_responseFactory.IsKnownFile(localPath))
                {
                    var responseFile = _responseFactory.Get(localPath);

                    SetHttpStatus(response, HttpStatusCode.OK);
                    SetContentType(response, responseFile.ContentType);
                    ServeString(response, responseFile.FileData);
                }
                else
                {
                    HandleUnknownRequest(request, response);
                }
            }
            catch (Exception exception)
            {
                _logger.Debug(exception.ToString());
            }
        }