🇬🇧
Styio Developer Manual
English
English
  • Overview
  • Unka's Diary
    • 2024-2025
  • Dev Env
    • Introduction
    • Preparation
      • Windows
      • Linux
      • MacOS
    • LLVM
    • Docker
      • Pull Image
      • Create Container
      • Versions
      • Others
    • Visual Studio Code
    • MSVC
  • Rules
    • 1. Pay only what you need.
  • Milestones
    • Task Board
    • History
    • IF YOU DON'T KNOW WHAT TO DO
  • Possible Optimizations
    • Parse URLs
  • Dark Magic
    • Enable Hyper-V
  • Thinking
    • Add A New AST
    • Decisions
    • Questions
    • Other Questions
    • Value
    • Outcome
Powered by GitBook
On this page
  1. Possible Optimizations

Parse URLs

We need to find an efficient way to recognize and parse local paths and web urls.

Categories:

  • Local Absolute Path for Unix-like OS

  • Local Absolute Path for Windows OS

  • Local Relevant Path for both Windows and Unix-like OS

  • HTTP Web URLs

  • HTTPS Web URLs

  • FTP Web URLs

  • MySQL / MariaDB Access URLs

  • PostgreSQL Access URLs

  • MongoDB Access URLs

  • ......

Goal

  1. Recognize if a given string is a local path or a web URL, because they will be treated in very different ways.

  2. When you know that is a web URL, find out what protocol it uses, that is to say, the type of URL.

  3. What are differences between web URLs and database URLs?

Relevant Methods:

parse_path()
PreviousIF YOU DON'T KNOW WHAT TO DONextEnable Hyper-V

Last updated 1 year ago