<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Web Servers on oorkan</title>
    <link>https://www.oorkan.dev/blog/categories/web-servers/</link>
    <description>Recent content in Web Servers on oorkan</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 21 Mar 2021 10:30:00 +0400</lastBuildDate>
    <atom:link href="https://www.oorkan.dev/blog/categories/web-servers/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A Simple Python HTTP Server</title>
      <link>https://www.oorkan.dev/blog/a-simple-python-http-server/</link>
      <pubDate>Sun, 21 Mar 2021 10:30:00 +0400</pubDate>
      <guid>https://www.oorkan.dev/blog/a-simple-python-http-server/</guid>
      <description>&lt;p&gt;Although, we aren&amp;rsquo;t gonna need it in this article but it&amp;rsquo;s always good to setup a virtual environment when working with Python. Check out my article on how to create a virtual environment for Python:&#xA;&lt;a href=&#34;https://www.oorkan.dev/blog/python/how-to-create-a-python-virtual-environment/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;/blog/python/how-to-create-a-python-virtual-environment/&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;To create a simple Python HTTP Server, we are going to use two modules called &lt;code&gt;http.server&lt;/code&gt; and &lt;code&gt;socketserver&lt;/code&gt;. They both are part of &lt;a href=&#34;https://docs.python.org/3/library/index.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Python&amp;rsquo;s Standard Library&lt;/a&gt;, we don&amp;rsquo;t need to install them.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Important!&lt;/strong&gt; This material is made for learning purposes. &lt;strong&gt;DO NOT&lt;/strong&gt; use it in production. &lt;code&gt;http.server&lt;/code&gt; is not recommended for production. It only implements basic security checks.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
