FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SwinjectSimpleExample/SwinjectSimpleExample/Network.swift at master · Swinject/SwinjectSimpleExample · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Aug 21, 2021. It is now read-only.
Swinject
/
SwinjectSimpleExample
Public archive
Notifications
You must be signed in to change notification settings
Fork
19
Star
63
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SwinjectSimpleExample
/
SwinjectSimpleExample
/
Network.swift
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 473 Bytes
Breadcrumbs
SwinjectSimpleExample
/
SwinjectSimpleExample
/
Network.swift
Copy path
File metadata and controls
18 lines (16 loc) · 473 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
// Network.swift
// SwinjectSimpleExample
//
// Created by Yoichi Tagaya on 8/10/15.
// Copyright © 2015 Swinject Contributors. All rights reserved.
//
import
Foundation
import
Alamofire
struct
Network
:
Networking
{
func
request
(
_ networkResponse
:
@escaping
(
Data
?
)
->
(
)
)
{
Alamofire
.
request
(
OpenWeatherMap
.
url
,
parameters
:
OpenWeatherMap
.
parameters
)
.
responseData
{
(
dataResponse
)
in
networkResponse
(
dataResponse
.
data
)
}
}
}
Back
|
FazBrowse Home
|
New Git URL