{"id":2673,"date":"2018-05-31T00:00:00","date_gmt":"2018-05-31T00:00:00","guid":{"rendered":"https:\/\/azure.microsoft.com\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay"},"modified":"2023-05-11T15:39:23","modified_gmt":"2023-05-11T22:39:23","slug":"receiving-and-handling-http-requests-anywhere-with-the-azure-relay","status":"publish","type":"post","link":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/","title":{"rendered":"Receiving and handling HTTP requests anywhere with the Azure Relay"},"content":{"rendered":"<p>If you followed Microsoft\u2019s coverage from the Build 2018 conference, you may have been as excited as we were about the new <a href=\"https:\/\/channel9.msdn.com\/Shows\/Azure-Friday\/At-Build-2018-Visual-Studio-Live-Share\" target=\"_blank\" rel=\"noopener\">Visual Studio Live Share<\/a> feature that allows instant, remote, peer-to-peer collaboration between Visual Studio users, no matter where they are. One developer could be sitting in a coffee shop and another on a plane with in-flight WiFi, and yet both can collaborate directly on code.<\/p>\n<p>The &#8220;networking magic&#8221; that enables the Visual Studio team to offer this feature is the <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/service-bus-relay\/relay-what-is-it\" target=\"_blank\" rel=\"noopener\">Azure Relay<\/a>, which is a part of the messaging services family along with Azure Service Bus, Azure Event Hubs, and Azure Event Grid. The Relay is, indeed, the oldest of all Azure services, with the earliest public incubation having started exactly 12 years ago today, and it was amongst the handful of original services that launched with the Azure platform in January 2010.<\/p>\n<p>In the meantime, the Relay has learned to speak a <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/service-bus-relay\/relay-hybrid-connections-protocol\" target=\"_blank\" rel=\"noopener\">fully documented open protocol<\/a> that can work with any WebSocket client stack, and allows any such client to become a listener for inbound connections from other clients, without needing inbound firewall rules, public IP addresses, or DNS registrations. Since all inbound communication terminates inside the application layer instead of far down at the network link level, the Relay is also an all around more secure solution for reaching into individual apps than using virtual private network (VPN) technology.<\/p>\n<p>In time for the Build 2018 conference, the Relay learned a brand-new trick that you may have missed learning about amidst the torrent of other Azure news, so we\u2019re telling you about it again today: The Relay now also supports relayed HTTP requests.<\/p>\n<p>This feature is very interesting for applications or application components that run inside of containers and where it&#039;s difficult to provide a public endpoint, and is especially well-suited for implementing Webhooks that can be integrated with <a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/event-grid\/\" target=\"_blank\" rel=\"noopener\">Azure Event Grid<\/a>.<\/p>\n<p>The Relay is commonly used in scenarios where applications or devices must be reached behind firewalls. Typical application scenarios include the integration of cloud-based SaaS applications with points of sale or service (shops, coffee bars, restaurants, tanning salons, gyms, repair shops) or with professional services offices (tax advisors, law offices, medical clinics). Furthermore, the Relay is increasingly popular with corporate IT departments who use <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/app-service\/app-service-hybrid-connections\" target=\"_blank\" rel=\"noopener\">relay based communication paths<\/a> instead of complex VPN setups. We will have more news regarding such scenarios in the near future.<\/p>\n<p>The new HTTP support lets you can create and host a publicly reachable HTTP(-S) listener anywhere, even on your phone or any other device, and leave it to the Azure Relay service to provide a resolvable DNS name, a TLS server certificate, and a publicly accessible IP address. All your application needs is outbound Websocket connectivity to the Azure Relay over the common HTTPS port 443.<\/p>\n<p>For illustration, let\u2019s take a brief look at a simple Node.js example. First, here\u2019s a minimal local HTTP listener built with Node.js \u201cout of the box\u201d:<\/p>\n<pre style=\"background: white;color: black;font-family: consolas, courier new, courier\">\r\nvar http = require(&#039;http&#039;);\r\nvar port = process.env.PORT || 1337;\r\n\r\nhttp.createServer(function (req, res) {\r\n\u00a0\u00a0\u00a0\u00a0 res.writeHead(200, { &#039;Content-Type&#039;: &#039;text\/plain&#039; });\r\n\u00a0\u00a0\u00a0\u00a0 res.end(&#039;Hello Worldn&#039;);\r\n}).listen(port);\r\n<\/pre>\n<p>This is the equivalent Node.js application using the Azure Relay:<\/p>\n<pre style=\"background: white;color: black;font-family: consolas, courier new, courier\">\r\nvar http = require(&#039;hyco-https&#039;);\r\n\r\nvar uri = http.createRelayListenUri(\"cvbuild.servicebus.windows.net\", \"app\");\r\nvar server = http.createRelayedServer({\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 server: uri,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 token: () => http.createRelayToken(uri, \"listen\", \"{\u2026key\u2026}\")\r\n\u00a0\u00a0\u00a0\u00a0 },\r\n\u00a0\u00a0\u00a0\u00a0 function (req, res) {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 res.writeHead(200, { &#039;Content-Type&#039;: &#039;text\/plain&#039; });\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 res.end(&#039;Hello Worldn&#039;);\r\n}).listen();\r\n<\/pre>\n<p>The key changes are that the Relay application uses the \u2018hyco-https\u2019 module instead of Node.js\u2019 built-in \u2018http\u2019 module, and that the server is created using the \u2018createRelayedServer\u2019 method supplying the endpoint and security token information for connecting to the Relay. Most important: The Node.js HTTP handler code is completely identical.<\/p>\n<p>For .NET Standard, we have extended the existing Relay API in the latest preview of the <a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.Azure.Relay\" target=\"_blank\" rel=\"noopener\">Microsoft.Azure.Relay<\/a> NuGet package to also support handling HTTP requests. You create a HybridConnectionListener as you do for Websocket connections, and then just add a RequestHandler callback.<\/p>\n<pre style=\"background: white;color: black;font-family: consolas, courier new, courier\">\r\nvar listener = new HybridConnectionListener(uri, tokenProvider);\r\nlistener.RequestHandler = (context) =>\r\n{\r\n\u00a0\u00a0\u00a0\u00a0 context.Response.StatusCode = HttpStatusCode.OK;\r\n\u00a0\u00a0\u00a0\u00a0 context.Response.StatusDescription = \"OK\";\r\n\u00a0\u00a0\u00a0\u00a0 using (var sw = new StreamWriter(context.Response.OutputStream))\r\n\u00a0\u00a0\u00a0\u00a0 {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sw.WriteLine(\"hello!\");\r\n\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0\u00a0 context.Response.Close();\r\n};\r\n<\/pre>\n<p>If you want to have existing ASP.NET Core services listen for requests on the Relay, you use the new <a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.Azure.Relay.AspNetCore\" target=\"_blank\" rel=\"noopener\">Microsoft.Azure.Relay.AspNetCore<\/a> NuGet package that was just released and that allows hosting existing ASP.NET Core apps behind the Relay by adding the &#8220;UseAzureRelay()&#8221; extension to the web host builder and configuring the connection string of a Hybrid Connection shared access rule (see <a href=\"https:\/\/github.com\/Azure\/azure-relay-aspnetserver\" target=\"_blank\" rel=\"noopener\">readme<\/a>, <a href=\"https:\/\/github.com\/Azure\/azure-relay-aspnetserver\/tree\/dev\/samples\" target=\"_blank\" rel=\"noopener\">more samples<\/a>).<\/p>\n<pre style=\"background: white;color: black;font-family: consolas\">\r\n    public static IWebHost BuildWebHost(string[] args) =>\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 WebHost.CreateDefaultBuilder(args)\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .UseStartup<Startup>()\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .UseAzureRelay(options =>\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 options.UrlPrefixes.Add(connectionString);\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 })\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .Build();\r\n<\/pre>\n<p>The HTTP feature is now in preview in production, meaning you can use it alongside the existing Relay features, complete with support and SLA. Because it\u2019s in preview and not yet entirely in its final shape, we might still make substantial changes to the HTTP-related wire protocol.<\/p>\n<p>Since the Relay isn\u2019t a regular reverse proxy, there are some lower level HTTP details that the Relay overrides and that we will eventually try to align. An exemplary known issue of that sort is that the Relay will always transform HTTP responses into using chunked transfer encoding; while that is might be fairly annoying for protocol purists, it doesn\u2019t have material impact on most application-level use cases.<\/p>\n<p>To get started, check out the tutorials for <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/service-bus-relay\/relay-hybrid-connections-http-requests-dotnet-get-started\" target=\"_blank\" rel=\"noopener\">C#<\/a> or <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/service-bus-relay\/relay-hybrid-connections-http-requests-node-get-started\" target=\"_blank\" rel=\"noopener\">Node.js<\/a> and then let us know via the feedback option below the tutorials whether you like the new HTTP feature.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In time for the Build 2018 conference, the Relay learned a brand-new trick that you may have missed leaning about amidst the torrent of other Azure news, so we\u2019re telling you about it again today: The Relay now also supports relayed HTTP requests over its open Websockets protocol.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","footnotes":"","msx_community_cta_settings":[]},"categories":[1498],"tags":[],"audience":[3054,3055,3056],"content-type":[],"product":[1586],"tech-community":[],"topic":[],"coauthors":[867],"class_list":["post-2673","post","type-post","status-publish","format-standard","hentry","category-integration","audience-business-decision-makers","audience-developers","audience-it-implementors","product-service-bus"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Receiving and handling HTTP requests anywhere with the Azure Relay | Microsoft Azure Blog<\/title>\n<meta name=\"description\" content=\"In time for the Build 2018 conference, the Relay learned a brand-new trick that you may have missed leaning about amidst the torrent of other Azure news, so we\u2019re telling you about it again today: The Relay now also supports relayed HTTP requests over its open Websockets protocol.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Receiving and handling HTTP requests anywhere with the Azure Relay | Microsoft Azure Blog\" \/>\n<meta property=\"og:description\" content=\"In time for the Build 2018 conference, the Relay learned a brand-new trick that you may have missed leaning about amidst the torrent of other Azure news, so we\u2019re telling you about it again today: The Relay now also supports relayed HTTP requests over its open Websockets protocol.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Azure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsoftazure\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-31T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-11T22:39:23+00:00\" \/>\n<meta name=\"author\" content=\"Clemens Vasters\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azure\" \/>\n<meta name=\"twitter:site\" content=\"@azure\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Clemens Vasters\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/\"},\"author\":[{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/clemens-vasters\/\",\"@type\":\"Person\",\"@name\":\"Clemens Vasters\"}],\"headline\":\"Receiving and handling HTTP requests anywhere with the Azure Relay\",\"datePublished\":\"2018-05-31T00:00:00+00:00\",\"dateModified\":\"2023-05-11T22:39:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/\"},\"wordCount\":829,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"articleSection\":[\"Integration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/\",\"name\":\"Receiving and handling HTTP requests anywhere with the Azure Relay | Microsoft Azure Blog\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\"},\"datePublished\":\"2018-05-31T00:00:00+00:00\",\"dateModified\":\"2023-05-11T22:39:23+00:00\",\"description\":\"In time for the Build 2018 conference, the Relay learned a brand-new trick that you may have missed leaning about amidst the torrent of other Azure news, so we\u2019re telling you about it again today: The Relay now also supports relayed HTTP requests over its open Websockets protocol.\",\"breadcrumb\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog home\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integration\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/integration\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Receiving and handling HTTP requests anywhere with the Azure Relay\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"name\":\"Microsoft Azure Blog\",\"description\":\"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.\",\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\",\"name\":\"Microsoft Azure Blog\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"width\":512,\"height\":512,\"caption\":\"Microsoft Azure Blog\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/microsoftazure\",\"https:\/\/x.com\/azure\",\"https:\/\/www.instagram.com\/microsoftdeveloper\/\",\"https:\/\/www.linkedin.com\/company\/16188386\",\"https:\/\/www.youtube.com\/user\/windowsazure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117\",\"name\":\"shakir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"caption\":\"shakir\"},\"sameAs\":[\"https:\/\/azure.microsoft.com\"],\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Receiving and handling HTTP requests anywhere with the Azure Relay | Microsoft Azure Blog","description":"In time for the Build 2018 conference, the Relay learned a brand-new trick that you may have missed leaning about amidst the torrent of other Azure news, so we\u2019re telling you about it again today: The Relay now also supports relayed HTTP requests over its open Websockets protocol.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/","og_locale":"en_US","og_type":"article","og_title":"Receiving and handling HTTP requests anywhere with the Azure Relay | Microsoft Azure Blog","og_description":"In time for the Build 2018 conference, the Relay learned a brand-new trick that you may have missed leaning about amidst the torrent of other Azure news, so we\u2019re telling you about it again today: The Relay now also supports relayed HTTP requests over its open Websockets protocol.","og_url":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/","og_site_name":"Microsoft Azure Blog","article_publisher":"https:\/\/www.facebook.com\/microsoftazure","article_published_time":"2018-05-31T00:00:00+00:00","article_modified_time":"2023-05-11T22:39:23+00:00","author":"Clemens Vasters","twitter_card":"summary_large_image","twitter_creator":"@azure","twitter_site":"@azure","twitter_misc":{"Written by":"Clemens Vasters","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/#article","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/"},"author":[{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/clemens-vasters\/","@type":"Person","@name":"Clemens Vasters"}],"headline":"Receiving and handling HTTP requests anywhere with the Azure Relay","datePublished":"2018-05-31T00:00:00+00:00","dateModified":"2023-05-11T22:39:23+00:00","mainEntityOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/"},"wordCount":829,"commentCount":0,"publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"articleSection":["Integration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/","name":"Receiving and handling HTTP requests anywhere with the Azure Relay | Microsoft Azure Blog","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website"},"datePublished":"2018-05-31T00:00:00+00:00","dateModified":"2023-05-11T22:39:23+00:00","description":"In time for the Build 2018 conference, the Relay learned a brand-new trick that you may have missed leaning about amidst the torrent of other Azure news, so we\u2019re telling you about it again today: The Relay now also supports relayed HTTP requests over its open Websockets protocol.","breadcrumb":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/receiving-and-handling-http-requests-anywhere-with-the-azure-relay\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog home","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/"},{"@type":"ListItem","position":2,"name":"Integration","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/integration\/"},{"@type":"ListItem","position":3,"name":"Receiving and handling HTTP requests anywhere with the Azure Relay"}]},{"@type":"WebSite","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","name":"Microsoft Azure Blog","description":"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.","publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization","name":"Microsoft Azure Blog","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","width":512,"height":512,"caption":"Microsoft Azure Blog"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microsoftazure","https:\/\/x.com\/azure","https:\/\/www.instagram.com\/microsoftdeveloper\/","https:\/\/www.linkedin.com\/company\/16188386","https:\/\/www.youtube.com\/user\/windowsazure"]},{"@type":"Person","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117","name":"shakir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4","url":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","caption":"shakir"},"sameAs":["https:\/\/azure.microsoft.com"],"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/"}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Azure Blog","distributor_original_site_url":"https:\/\/azure.microsoft.com\/en-us\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/2673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/comments?post=2673"}],"version-history":[{"count":0,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/2673\/revisions"}],"wp:attachment":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media?parent=2673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/categories?post=2673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tags?post=2673"},{"taxonomy":"audience","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/audience?post=2673"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/content-type?post=2673"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/product?post=2673"},{"taxonomy":"tech-community","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tech-community?post=2673"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/topic?post=2673"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/coauthors?post=2673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}