Skip to content

Send and receive file on two services#16

Open
cyprus11 wants to merge 1 commit into
thinknetica:masterfrom
cyprus11:day_2_tav
Open

Send and receive file on two services#16
cyprus11 wants to merge 1 commit into
thinknetica:masterfrom
cyprus11:day_2_tav

Conversation

@cyprus11

Copy link
Copy Markdown

No description provided.

def download_file(url)
uri = URI.parse(url)

Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вообще предполагалаось, что вы все-таки будет опираться на события RabbitMQ, а не воспользуетесь REST-овым обращением через HTTP. Но наверное это я запутал вас в задании.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants