Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Networking

What is Networking
A computer networking is a process of connecting two more than two computers with the purpose to share data,
provide technical support, and to communicate
Basic Networking: HTTP Request &
Response
The way HTTP which stands for HyperText Transfer Protocol is the basis for data communication on the internet,
and the way it works is that a request from the client or browser asks the server for a file. The server gets the file if
it is on the server. Then sends it back, to the client as a response, to render. If any files need to provide, then the
browser will need to make an additional request.
How HTTP request and response works

• HTTP communication involves two important terms and those are Client and
Server.
Client: Client is the one who makes the HTTP request. For example Browser is the
client.
• Server: The server is the one who receives the request and sends the response.
Basically server is the piece of code that is responsible for accepting the request
and sending the response back. usually, the computer on which server code runs
is called server. Simple HTTP communication is shown below
Client-Server Model
The Client-server model is a distributed application structure that partitions task or workload between the providers
of a resource or service, called servers, and service requesters called clients. In the client-server architecture, when
the client computer sends a request for data to the server through the internet, the server accepts the requested
process and deliver the data packets requested back to the client. Clients do not share any of their resources.
Examples of Client-Server Model are Email, World Wide Web, etc.
Workflow for using permissions
• If your app offers functionality that might require access to restricted data or restricted
actions, determine whether you can get the information or perform the
actions without needing to declare permissions. You can fulfill many use cases in your
app, such as taking photos, pausing media playback, and displaying relevant ads,
without needing to declare any permissions.
• If you decide that your app must access restricted data or perform restricted actions to
fulfill a use case, declare the appropriate permissions. Some permissions, known
as install-time permissions, are automatically granted when your app is installed. Other
permissions, known as runtime permissions, require your app to go a step further and
request the permission at runtime.
• App permissions help support user privacy by protecting access to the following:
• Restricted data, such as system state and a user's contact information.
• Restricted actions, such as connecting to a paired device and recording audio.
How to set Permission In manifest file
Using HTTP Methods for RESTful Services

• The HTTP verbs comprise a major portion of our “uniform interface”


constraint and provide us the action counterpart to the noun-based
resource. The primary or most-commonly-used HTTP verbs (or
methods, as they are properly called) are POST, GET, PUT, PATCH, and
DELETE. These correspond to create, read, update, and delete (or
CRUD) operations, respectively. There are a number of other verbs,
too, but are utilized less frequently. Of those less-frequent methods,
OPTIONS and HEAD are used more often than others.
Example Code
• https://github.com/udacity/ud843_Soonami

You might also like