SlideShare a Scribd company logo
Web API HTTP Pipeline




     Learn More @ http://www.learnnowonline.com
        Copyright © by Application Developers Training Company
Objectives




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Objectives
• Understand the client-side and server-
  side pipelines




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Objectives
• Understand the client-side and server-
  side pipelines
• Send the best HTTP responses for Web
  API operations




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Objectives
• Understand the client-side and server-
  side pipelines
• Send the best HTTP responses for Web
  API operations
• Use the HTTP pipeline objects to
  handle exceptions




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Objectives
• Understand the client-side and server-
  side pipelines
• Send the best HTTP responses for Web
  API operations
• Use the HTTP pipeline objects to
  handle exceptions
• Write your own custom handlers for
  Web API requests

         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline
• Server-Side Pipeline




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling
•   Custom Handlers


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Pipeline Elements




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Pipeline Elements
• Request/Response models have
  pipelines




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Pipeline Elements
• Request/Response models have
  pipelines
• Composed of sequential events that
  fire




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Pipeline Elements
• Request/Response models have
  pipelines
• Composed of sequential events that
  fire
• Uses specific objects




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Pipeline Elements
• Request/Response models have
  pipelines
• Composed of sequential events that
  fire
• Uses specific objects
• Web API has client and server-side
  pipelines


         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HttpRequestMessage




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
HttpRequestMessage
• Represents all the info about the HTTP
  request




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HttpRequestMessage
• Represents all the info about the HTTP
  request
  • URL




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
HttpRequestMessage
• Represents all the info about the HTTP
  request
  • URL
  • HTTP method




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
HttpRequestMessage
• Represents all the info about the HTTP
  request
  • URL
  • HTTP method
  • Headers




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
HttpResponseMessage




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
HttpResponseMessage
• Represents all the info about the HTTP
  response




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HttpResponseMessage
• Represents all the info about the HTTP
  response
  • Status code




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
HttpResponseMessage
• Represents all the info about the HTTP
  response
  • Status code
  • Success flag




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
HttpResponseMessage
• Represents all the info about the HTTP
  response
  • Status code
  • Success flag
  • Original HTTP request




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
HttpMessageHandler




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
HttpMessageHandler
• Base class implemented by other
  objects




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HttpMessageHandler
• Base class implemented by other
  objects
• Most custom processing code goes
  here




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HttpMessageHandler
• Base class implemented by other
  objects
• Most custom processing code goes
  here
• Able to write custom handlers and put
  them in the pipeline



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline
• Server-Side Pipeline




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling
•   Custom Handlers


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Client-Side Pipeline




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Client-Side Pipeline
• HttpClient sends requests




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Client-Side Pipeline
• HttpClient sends requests
• Request is an HttpRequestMessage




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Client-Side Pipeline
• HttpClient sends requests
• Request is an HttpRequestMessage
• Request is sent to HttpMessageHandler




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Client-Side Pipeline
•   HttpClient sends requests
•   Request is an HttpRequestMessage
•   Request is sent to HttpMessageHandler
•   HttpMessageHandler returns
    HttpResponseMessage




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Client-Side Pipeline
• HttpClient sends requests
• Request is an HttpRequestMessage
• Request is sent to HttpMessageHandler
• HttpMessageHandler returns
  HttpResponseMessage
• Default handler is HttpClientHandler



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Client-Side Pipeline




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Agenda




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline
• Server-Side Pipeline




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling
•   Custom Handlers


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Server-Side Pipeline




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Server-Side Pipeline
• Web host gives the request to
  HttpServer




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Server-Side Pipeline
• Web host gives the request to
  HttpServer
• Request passed through series of
  HttpMessageHandlers




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Server-Side Pipeline
• Web host gives the request to
  HttpServer
• Request passed through series of
  HttpMessageHandlers
• Ends with HttpControllerDispatcher




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Server-Side Pipeline
• Web host gives the request to
  HttpServer
• Request passed through series of
  HttpMessageHandlers
• Ends with HttpControllerDispatcher
• Dispatcher sends request to
  appropriate Controller which sends


         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline
• Server-Side Pipeline




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling
•   Custom Handlers


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Improving CRUD Responses




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Improving CRUD Responses
• By default, Web API always sends same
  HTTP response code




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Improving CRUD Responses
• By default, Web API always sends same
  HTTP response code
• Can alter the response to include more
  accurate info




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Improving CRUD Responses




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Improving CRUD Responses
Let’s improve a Web API service’s HTTP
responses!




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline
• Server-Side Pipeline




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling
•   Custom Handlers


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Exception Handling




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Exception Handling
• Exceptions tend to be vague on client




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Exception Handling
• Exceptions tend to be vague on client
• HttpResponseException




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Exception Handling
• Exceptions tend to be vague on client
• HttpResponseException
• Can use filters to assign HTTP
  responses




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Exception Handling




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Exception Handling
Let’s set up an automated way to send
better error messages to the client




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
• Pipeline Elements
• Client-Side Pipeline
• Server-Side Pipeline




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Agenda
•   Pipeline Elements
•   Client-Side Pipeline
•   Server-Side Pipeline
•   Improving CRUD Responses
•   Exception Handling
•   Custom Handlers


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Custom Handlers




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Custom Handlers
• Inherit DelegatingHandler




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Custom Handlers
• Inherit DelegatingHandler
• Custom code to perform any kind of
  per request functionality




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Custom Handlers
• Inherit DelegatingHandler
• Custom code to perform any kind of
  per request functionality
  • Logging




         Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Custom Handlers
• Inherit DelegatingHandler
• Custom code to perform any kind of
  per request functionality
  • Logging
  • Security




          Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Custom Handlers
• Inherit DelegatingHandler
• Custom code to perform any kind of
  per request functionality
  • Logging
  • Security
  • Handling certain kinds of requests




          Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Custom Handlers




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Custom Handlers
We’ll add some security to a Web API
service




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Learn More!




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!


• Learn more about Web API on SlideShare:




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!


• Learn more about Web API on SlideShare:
   Web API Basics




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Ad

Recommended

KEY
What's new in Silverlight 5
LearnNowOnline
 
KEY
Managing site collections
LearnNowOnline
 
KEY
JavaScript: Operators and Expressions
LearnNowOnline
 
PPTX
Golden Rules of API Design
David Koelle
 
PPT
How to design effective APIs
Bansilal Haudakari
 
PPTX
Miracle Inameti-Archibong - Are Progressive Web Apps The Future Of The Web?
Noisy Little Monkey
 
PDF
Business Success With Core Web Vitals | Izzi Smith
Noisy Little Monkey
 
PDF
Creating an Effective Mobile API
Nick DeNardis
 
PDF
Adobe Experience Manager (AEM) - Multilingual SIG on SEO - Dave Lloyd
Dave Lloyd
 
PPTX
Build single page applications using AngularJS on AEM
AdobeMarketingCloud
 
PPTX
Mobile APIs: Optimizing APIs for Many Devices
Apigee | Google Cloud
 
KEY
A tour of SQL Server
LearnNowOnline
 
PDF
Immerse 2016 Efficient publishing with content fragments
AdobeMarketingCloud
 
PDF
Building SharePoint 2013 Apps - Architecture, Authentication & Connectivity API
SharePointRadi
 
PDF
Designing your API Server for mobile apps
Mugunth Kumar
 
PPTX
7 Deadly Sins in Azure AD App Development
Joonas Westlin
 
PPTX
Making Sense of Hypermedia APIs – Hype or Reality?
Akana
 
PDF
12 hot features to engage and save time with aem 6.2
Tricode (part of Dept)
 
PPTX
IMMERSE 2016 IST Mark Szulc Keynote
AdobeMarketingCloud
 
PDF
Building Better Web APIs with Rails
All Things Open
 
PPTX
Adobe AEM core components
Lokesh BS
 
PDF
Modernizing Adobe Experience Manager (AEM)
Gabriel Walt
 
PDF
JCR, Sling or AEM? Which API should I use and when?
connectwebex
 
KEY
Web API Basics
LearnNowOnline
 
KEY
Asynchronous Programming
LearnNowOnline
 
KEY
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
LearnNowOnline
 
KEY
Working with Controllers and Actions in MVC
LearnNowOnline
 
KEY
SharePoint Document Management
LearnNowOnline
 
KEY
Introduction to ASP.NET MVC
LearnNowOnline
 
KEY
.NET Variables and Data Types
LearnNowOnline
 

More Related Content

What's hot (15)

PDF
Adobe Experience Manager (AEM) - Multilingual SIG on SEO - Dave Lloyd
Dave Lloyd
 
PPTX
Build single page applications using AngularJS on AEM
AdobeMarketingCloud
 
PPTX
Mobile APIs: Optimizing APIs for Many Devices
Apigee | Google Cloud
 
KEY
A tour of SQL Server
LearnNowOnline
 
PDF
Immerse 2016 Efficient publishing with content fragments
AdobeMarketingCloud
 
PDF
Building SharePoint 2013 Apps - Architecture, Authentication & Connectivity API
SharePointRadi
 
PDF
Designing your API Server for mobile apps
Mugunth Kumar
 
PPTX
7 Deadly Sins in Azure AD App Development
Joonas Westlin
 
PPTX
Making Sense of Hypermedia APIs – Hype or Reality?
Akana
 
PDF
12 hot features to engage and save time with aem 6.2
Tricode (part of Dept)
 
PPTX
IMMERSE 2016 IST Mark Szulc Keynote
AdobeMarketingCloud
 
PDF
Building Better Web APIs with Rails
All Things Open
 
PPTX
Adobe AEM core components
Lokesh BS
 
PDF
Modernizing Adobe Experience Manager (AEM)
Gabriel Walt
 
PDF
JCR, Sling or AEM? Which API should I use and when?
connectwebex
 
Adobe Experience Manager (AEM) - Multilingual SIG on SEO - Dave Lloyd
Dave Lloyd
 
Build single page applications using AngularJS on AEM
AdobeMarketingCloud
 
Mobile APIs: Optimizing APIs for Many Devices
Apigee | Google Cloud
 
A tour of SQL Server
LearnNowOnline
 
Immerse 2016 Efficient publishing with content fragments
AdobeMarketingCloud
 
Building SharePoint 2013 Apps - Architecture, Authentication & Connectivity API
SharePointRadi
 
Designing your API Server for mobile apps
Mugunth Kumar
 
7 Deadly Sins in Azure AD App Development
Joonas Westlin
 
Making Sense of Hypermedia APIs – Hype or Reality?
Akana
 
12 hot features to engage and save time with aem 6.2
Tricode (part of Dept)
 
IMMERSE 2016 IST Mark Szulc Keynote
AdobeMarketingCloud
 
Building Better Web APIs with Rails
All Things Open
 
Adobe AEM core components
Lokesh BS
 
Modernizing Adobe Experience Manager (AEM)
Gabriel Walt
 
JCR, Sling or AEM? Which API should I use and when?
connectwebex
 

Similar to Web API HTTP Pipeline (20)

KEY
Web API Basics
LearnNowOnline
 
KEY
Asynchronous Programming
LearnNowOnline
 
KEY
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
LearnNowOnline
 
KEY
Working with Controllers and Actions in MVC
LearnNowOnline
 
KEY
SharePoint Document Management
LearnNowOnline
 
KEY
Introduction to ASP.NET MVC
LearnNowOnline
 
KEY
.NET Variables and Data Types
LearnNowOnline
 
KEY
WPF Binding
LearnNowOnline
 
KEY
WPF: Working with Data
LearnNowOnline
 
KEY
SQL Server: Security
LearnNowOnline
 
KEY
Using The .NET Framework
LearnNowOnline
 
KEY
Object-Oriented JavaScript
LearnNowOnline
 
KEY
Creating a User Interface
LearnNowOnline
 
KEY
KnockOutJS with ASP.NET MVC
LearnNowOnline
 
KEY
SharePoint: Introduction to InfoPath
LearnNowOnline
 
KEY
The Entity Data Model
LearnNowOnline
 
KEY
Introducing the Entity Framework
LearnNowOnline
 
KEY
Bring a Web Page Alive with jQuery
LearnNowOnline
 
KEY
Introducing LINQ
LearnNowOnline
 
KEY
.Net branching and flow control
LearnNowOnline
 
Web API Basics
LearnNowOnline
 
Asynchronous Programming
LearnNowOnline
 
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
LearnNowOnline
 
Working with Controllers and Actions in MVC
LearnNowOnline
 
SharePoint Document Management
LearnNowOnline
 
Introduction to ASP.NET MVC
LearnNowOnline
 
.NET Variables and Data Types
LearnNowOnline
 
WPF Binding
LearnNowOnline
 
WPF: Working with Data
LearnNowOnline
 
SQL Server: Security
LearnNowOnline
 
Using The .NET Framework
LearnNowOnline
 
Object-Oriented JavaScript
LearnNowOnline
 
Creating a User Interface
LearnNowOnline
 
KnockOutJS with ASP.NET MVC
LearnNowOnline
 
SharePoint: Introduction to InfoPath
LearnNowOnline
 
The Entity Data Model
LearnNowOnline
 
Introducing the Entity Framework
LearnNowOnline
 
Bring a Web Page Alive with jQuery
LearnNowOnline
 
Introducing LINQ
LearnNowOnline
 
.Net branching and flow control
LearnNowOnline
 
Ad

More from LearnNowOnline (8)

PPT
Windows 8: Shapes and Geometries
LearnNowOnline
 
PPT
SQL: Permissions and Data Protection
LearnNowOnline
 
PPT
New in the Visual Studio 2012 IDE
LearnNowOnline
 
KEY
Attributes, reflection, and dynamic programming
LearnNowOnline
 
KEY
Generics
LearnNowOnline
 
KEY
Object oriented techniques
LearnNowOnline
 
KEY
Sql 2012 development and programming
LearnNowOnline
 
KEY
Expression Blend Motion & Interaction Design
LearnNowOnline
 
Windows 8: Shapes and Geometries
LearnNowOnline
 
SQL: Permissions and Data Protection
LearnNowOnline
 
New in the Visual Studio 2012 IDE
LearnNowOnline
 
Attributes, reflection, and dynamic programming
LearnNowOnline
 
Generics
LearnNowOnline
 
Object oriented techniques
LearnNowOnline
 
Sql 2012 development and programming
LearnNowOnline
 
Expression Blend Motion & Interaction Design
LearnNowOnline
 
Ad

Recently uploaded (20)

PDF
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
PPTX
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
PDF
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PPTX
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
PPTX
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
PDF
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
PDF
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
PPTX
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
PPTX
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
PDF
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
All Things Open
 
PDF
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
PDF
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
PDF
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
PDF
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
 
PDF
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
All Things Open
 
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 

Web API HTTP Pipeline

  • 1. Web API HTTP Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 2. Objectives Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 3. Objectives • Understand the client-side and server- side pipelines Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 4. Objectives • Understand the client-side and server- side pipelines • Send the best HTTP responses for Web API operations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 5. Objectives • Understand the client-side and server- side pipelines • Send the best HTTP responses for Web API operations • Use the HTTP pipeline objects to handle exceptions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 6. Objectives • Understand the client-side and server- side pipelines • Send the best HTTP responses for Web API operations • Use the HTTP pipeline objects to handle exceptions • Write your own custom handlers for Web API requests Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 7. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 8. Agenda • Pipeline Elements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 9. Agenda • Pipeline Elements • Client-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 10. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 11. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 12. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 13. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling • Custom Handlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 14. Pipeline Elements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 15. Pipeline Elements • Request/Response models have pipelines Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 16. Pipeline Elements • Request/Response models have pipelines • Composed of sequential events that fire Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 17. Pipeline Elements • Request/Response models have pipelines • Composed of sequential events that fire • Uses specific objects Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 18. Pipeline Elements • Request/Response models have pipelines • Composed of sequential events that fire • Uses specific objects • Web API has client and server-side pipelines Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 19. HttpRequestMessage Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 20. HttpRequestMessage • Represents all the info about the HTTP request Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 21. HttpRequestMessage • Represents all the info about the HTTP request • URL Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 22. HttpRequestMessage • Represents all the info about the HTTP request • URL • HTTP method Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 23. HttpRequestMessage • Represents all the info about the HTTP request • URL • HTTP method • Headers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 24. HttpResponseMessage Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 25. HttpResponseMessage • Represents all the info about the HTTP response Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 26. HttpResponseMessage • Represents all the info about the HTTP response • Status code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 27. HttpResponseMessage • Represents all the info about the HTTP response • Status code • Success flag Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 28. HttpResponseMessage • Represents all the info about the HTTP response • Status code • Success flag • Original HTTP request Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 29. HttpMessageHandler Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 30. HttpMessageHandler • Base class implemented by other objects Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 31. HttpMessageHandler • Base class implemented by other objects • Most custom processing code goes here Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 32. HttpMessageHandler • Base class implemented by other objects • Most custom processing code goes here • Able to write custom handlers and put them in the pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 33. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 34. Agenda • Pipeline Elements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 35. Agenda • Pipeline Elements • Client-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 36. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 37. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 38. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 39. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling • Custom Handlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 40. Client-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 41. Client-Side Pipeline • HttpClient sends requests Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 42. Client-Side Pipeline • HttpClient sends requests • Request is an HttpRequestMessage Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 43. Client-Side Pipeline • HttpClient sends requests • Request is an HttpRequestMessage • Request is sent to HttpMessageHandler Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 44. Client-Side Pipeline • HttpClient sends requests • Request is an HttpRequestMessage • Request is sent to HttpMessageHandler • HttpMessageHandler returns HttpResponseMessage Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 45. Client-Side Pipeline • HttpClient sends requests • Request is an HttpRequestMessage • Request is sent to HttpMessageHandler • HttpMessageHandler returns HttpResponseMessage • Default handler is HttpClientHandler Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 46. Client-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 47. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 48. Agenda • Pipeline Elements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 49. Agenda • Pipeline Elements • Client-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 50. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 51. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 52. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 53. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling • Custom Handlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 54. Server-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 55. Server-Side Pipeline • Web host gives the request to HttpServer Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 56. Server-Side Pipeline • Web host gives the request to HttpServer • Request passed through series of HttpMessageHandlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 57. Server-Side Pipeline • Web host gives the request to HttpServer • Request passed through series of HttpMessageHandlers • Ends with HttpControllerDispatcher Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 58. Server-Side Pipeline • Web host gives the request to HttpServer • Request passed through series of HttpMessageHandlers • Ends with HttpControllerDispatcher • Dispatcher sends request to appropriate Controller which sends Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 59. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 60. Agenda • Pipeline Elements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 61. Agenda • Pipeline Elements • Client-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 62. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 63. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 64. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 65. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling • Custom Handlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 66. Improving CRUD Responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 67. Improving CRUD Responses • By default, Web API always sends same HTTP response code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 68. Improving CRUD Responses • By default, Web API always sends same HTTP response code • Can alter the response to include more accurate info Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 69. Improving CRUD Responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 70. Improving CRUD Responses Let’s improve a Web API service’s HTTP responses! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 71. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 72. Agenda • Pipeline Elements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 73. Agenda • Pipeline Elements • Client-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 74. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 75. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 76. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 77. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling • Custom Handlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 78. Exception Handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 79. Exception Handling • Exceptions tend to be vague on client Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 80. Exception Handling • Exceptions tend to be vague on client • HttpResponseException Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 81. Exception Handling • Exceptions tend to be vague on client • HttpResponseException • Can use filters to assign HTTP responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 82. Exception Handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 83. Exception Handling Let’s set up an automated way to send better error messages to the client Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 84. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 85. Agenda • Pipeline Elements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 86. Agenda • Pipeline Elements • Client-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 87. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 88. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 89. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 90. Agenda • Pipeline Elements • Client-Side Pipeline • Server-Side Pipeline • Improving CRUD Responses • Exception Handling • Custom Handlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 91. Custom Handlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 92. Custom Handlers • Inherit DelegatingHandler Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 93. Custom Handlers • Inherit DelegatingHandler • Custom code to perform any kind of per request functionality Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 94. Custom Handlers • Inherit DelegatingHandler • Custom code to perform any kind of per request functionality • Logging Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 95. Custom Handlers • Inherit DelegatingHandler • Custom code to perform any kind of per request functionality • Logging • Security Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 96. Custom Handlers • Inherit DelegatingHandler • Custom code to perform any kind of per request functionality • Logging • Security • Handling certain kinds of requests Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 97. Custom Handlers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 98. Custom Handlers We’ll add some security to a Web API service Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 99. Learn More! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 100. Learn More! • This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 101. Learn More! • This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 102. Learn More! • This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details! • Learn more about Web API on SlideShare: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 103. Learn More! • This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details! • Learn more about Web API on SlideShare:  Web API Basics Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company

Editor's Notes