diff --git a/example/fixtures/golang-org.yaml b/example/fixtures/golang-org.yaml index 140b4f9..b01f152 100644 --- a/example/fixtures/golang-org.yaml +++ b/example/fixtures/golang-org.yaml @@ -1,177 +1,91 @@ --- version: 1 interactions: -- request: - body: "" - form: {} - headers: {} - url: http://golang.org/ - method: GET - response: - body: |+ - Found. + - request: + body: "" + form: {} + headers: {} + url: http://golang.org/ + method: GET + response: + body: "" + headers: + Content-Length: + - "0" + Content-Type: + - text/html + Date: + - Mon, 15 Aug 2022 15:20:23 GMT + Location: + - https://golang.org/ + Server: + - Google Frontend + X-Cloud-Trace-Context: + - d8d59244088d7f85e5cd6aaffb36abf6 + status: 302 Found + code: 302 + duration: 247.499837ms + - request: + body: "" + form: {} + headers: + Referer: + - http://golang.org/ + url: https://golang.org/ + method: GET + response: + body: |+ + Moved Permanently. - headers: - Content-Length: - - "42" - Content-Type: - - text/html; charset=utf-8 - Date: - - Fri, 11 Jun 2021 08:59:43 GMT - Location: - - https://golang.org/ - Via: - - 1.1 google - status: 302 Found - code: 302 - duration: 249.940791ms -- request: - body: "" - form: {} - headers: - Referer: - - http://golang.org/ - url: https://golang.org/ - method: GET - response: - body: "\n\n\n\n\n\n\n The - Go Programming Language\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n - \
\n Black Lives Matter.\n Support the Equal Justice - Initiative.\n
\n \n
\n\n
\n
\n\n\n\n\n\n\n\n\n
\n\n\n\n\n
\n - \
\n

\n Go - is an open source programming language that makes it easy to build\n simple, - reliable, and efficient software.\n

\n - \ \n \n \"\"\n Download Go\n \n

\n - \ Binary distributions available for
\n Linux, macOS, Windows, and - more.\n

\n
\n\n
\n - \
\n

Try - Go

\n \n Open - in Playground\n \n
\n
\n - \ \n - \
\n
\n - \
\n - \
\n
\n \n
\n - \ \n
\n - \ \n \n Tour\n \n
\n - \
\n
\n
\n\n \n
\n

Featured - articles

\n \n - \
\n\n
\n

Featured - video

\n
\n \n
\n
\n - \ \n
\n\n\n\n
\n
\n\n\n\n\n\n" - headers: - Alt-Svc: - - h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; - ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" - Content-Type: - - text/html; charset=utf-8 - Date: - - Fri, 11 Jun 2021 08:59:44 GMT - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload - Vary: - - Accept-Encoding - Via: - - 1.1 google - status: 200 OK - code: 200 - duration: 229.995489ms + headers: + Alt-Svc: + - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" + Content-Length: + - "50" + Content-Security-Policy: + - 'connect-src ''self'' www.google-analytics.com stats.g.doubleclick.net ; default-src ''self'' ; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data: ; frame-ancestors ''self'' ; frame-src ''self'' www.google.com feedback.googleusercontent.com www.googletagmanager.com scone-pa.clients6.google.com www.youtube.com player.vimeo.com ; img-src ''self'' www.google.com www.google-analytics.com ssl.gstatic.com www.gstatic.com gstatic.com data: * ; object-src ''none'' ; script-src ''self'' ''sha256-n6OdwTrm52KqKm6aHYgD0TFUdMgww4a0GQlIAVrMzck='' ''sha256-4ryYrf7Y5daLOBv0CpYtyBIcJPZkRD2eBPdfqsN3r1M='' ''sha256-sVKX08+SqOmnWhiySYk3xC7RDUgKyAkmbXV2GWts4fo='' www.google.com apis.google.com www.gstatic.com gstatic.com support.google.com www.googletagmanager.com www.google-analytics.com ssl.google-analytics.com tagmanager.google.com ; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com feedback.googleusercontent.com www.gstatic.com gstatic.com tagmanager.google.com ;' + Content-Type: + - text/html; charset=utf-8 + Date: + - Mon, 15 Aug 2022 15:20:24 GMT + Location: + - https://go.dev/ + Server: + - Google Frontend + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + X-Cloud-Trace-Context: + - 5aa4893f9c9a57c5aecc026701935326 + status: 301 Moved Permanently + code: 301 + duration: 329.315883ms + - request: + body: "" + form: {} + headers: + Referer: + - https://golang.org/ + url: https://go.dev/ + method: GET + response: + body: "\n\n\n\n\n\n \n\n\n\n\n\n\n \n \n \n\n\n\nThe Go Programming Language\n\n\n\n\n\n\n\n\n\n\n \n\n \n\n\n
\n
\n \n \n
\n
\n\n
\n
\n
\n
\n
\n

Build fast, reliable, and efficient software at scale

\n
    \n
  • \n \n \n \n Go is an open source programming language supported by Google\n
  • \n
  • \n \n \n \n Easy to learn and get started with\n
  • \n
  • \n \n \n \n Built-in concurrency and a robust standard library\n
  • \n
  • \n \n \n \n Growing ecosystem of partners, communities, and tools\n
  • \n
\n
\n \n
\n

\n Download packages for\n Windows 64-bit,\n macOS,\n Linux, and\n more\n

\n

\n The go command by default downloads and authenticates\n modules using the Go module mirror and Go checksum database run by\n Google. Learn more.\n

\n
\n
\n
\n \"Go\n
\n \n
\n
\n
\n
\n

Companies using Go

\n

Organizations in every industry use Go to power their software and services\n \n View all stories\n \n

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
    \n
  • \n
    \n
    \n

    “At the time, no single team member knew Go, but\nwithin a month, everyone was writing in Go and we were\nbuilding out the endpoints. It was the flexibility, how easy it was to use,\nand the really cool concept behind Go (how Go handles native concurrency,\ngarbage collection, and of course safety+speed.) that helped engage us\nduring the build. Also, who can beat that cute mascot!”

    \n
    — Jaime Enrique Garcia Lopez,\n Senior Software Development Manager\n at Capital One\n
    \n
    \n
    \n
  • \n
  • \n
    \n
    \n

    \"A small language that compiles fast makes for a happy developer.\nThe Go language is small, compiles really fast, and as a result it lets your\nmind focus on the actual problem and less on the tool you are using to solve\nit. Code, test, debug cycles are so quick that you forget you are not\nworking with an interpreted language. Looking at our code, you see\nless boilerplate and more business logic.\"

    \n
    — Clayton Coleman,\n Lead Engineer, Open Shift\n at RedHat\n
    \n
    \n
    \n
  • \n
  • \n
    \n
    \n

    Go has excellent characteristics for scalability and services\nwritten using it typically have very small memory footprints.\nBecause code is compiled into a single static binary, services can also be\ncontainerised with ease, making it much simpler to build and deploy. These\nattributes make Go an ideal choice for companies building\nmicroservices, as you can easily deploy into a highly available and\nscalable environment such as Kubernetes.”

    \n
    — Matt Boyle,\n Lead Software Engineer\n at Curve\n
    \n
    \n
    \n
  • \n
  • \n
    \n
    \n

    \"In our tightly managed environments where we run Go code,\nwe have seen a CPU reduction of approximately 10%\nwith cleaner and maintainable code.\"

    \n
    — Bala Natarajan,\n Sr. Director of Engineering, Developer Experience\n at PayPal\n
    \n
    \n
    \n
  • \n
  • \n
    \n
    \n

    \"Tooling has always been a problem with our legacy code base... but we have\n found that Go has excellent tooling, plus built-in testing, benchmarking,\n and profiling frameworks. It is easy to write efficient and resilient\n applications. After working on Go, most of our developers don't want\n to go back to other languages.\"

    \n
    — Benjamin Cane,\n Vice President and Principal Engineer\n at American Express\n
    \n
    \n
    \n
  • \n
  • \n
    \n
    \n

    \"...when a programming language is designed for exactly the environment most\n of us use right now—scalable, cloud-based servers that are optimized for\n performance—a lot can go right.\"

    \n
    — John Biggs and Ben Popper,\n \n at Stack Overflow\n
    \n
    \n
    \n
  • \n
\n
\n \n \n
\n
\n
\n
\n
\n
\n

Try Go

\n
\n
\n \n
\n
\n
\n
\n
\n \n
\n \n
\n \n Tour\n
\n
\n
\n
\n
\n
\n
\n
\n

What’s possible with Go

\n

\n Use Go for a variety of software development purposes\n

\n
\n \n
\n
\n
\n
\n
\n
\n \n
\n \n \n
\n
\n
\n
\n
\n
\n

Get started with Go

\n

\n Explore a wealth of learning resources, including guided journeys, courses, books, and more.\n

\n \n
\n
\n \n
    \n
  • \n In-Person Trainings\n
  • \n
  • \n \n Ardan Labs\n \n
    \n Offering customized on-site live training classes.\n
    \n
  • \n
  • \n \n Gopher Guides\n \n
    \n Customized In-person, remote, and online training classes. Training for Developers by Developers.\n
    \n
  • \n
  • \n \n Boss Sauce Creative\n \n
    \n Personalized or track-based Go training for teams.\n
    \n
  • \n
  • \n \n Shiju Varghese\n \n
    \n On-site classroom training on Go and consulting on distributed systems architectures, in India.\n
    \n
  • \n
\n
\n
\n
\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" + headers: + Cache-Control: + - private + Content-Security-Policy: + - 'connect-src ''self'' www.google-analytics.com stats.g.doubleclick.net ; default-src ''self'' ; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data: ; frame-ancestors ''self'' ; frame-src ''self'' www.google.com feedback.googleusercontent.com www.googletagmanager.com scone-pa.clients6.google.com www.youtube.com player.vimeo.com ; img-src ''self'' www.google.com www.google-analytics.com ssl.gstatic.com www.gstatic.com gstatic.com data: * ; object-src ''none'' ; script-src ''self'' ''sha256-n6OdwTrm52KqKm6aHYgD0TFUdMgww4a0GQlIAVrMzck='' ''sha256-4ryYrf7Y5daLOBv0CpYtyBIcJPZkRD2eBPdfqsN3r1M='' ''sha256-sVKX08+SqOmnWhiySYk3xC7RDUgKyAkmbXV2GWts4fo='' www.google.com apis.google.com www.gstatic.com gstatic.com support.google.com www.googletagmanager.com www.google-analytics.com ssl.google-analytics.com tagmanager.google.com ; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com feedback.googleusercontent.com www.gstatic.com gstatic.com tagmanager.google.com ;' + Content-Type: + - text/html; charset=utf-8 + Date: + - Mon, 15 Aug 2022 15:20:24 GMT + Server: + - Google Frontend + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + Vary: + - Accept-Encoding + X-Cloud-Trace-Context: + - f6d8f761cbee121c445a69cb9b5ac3c0 + status: 200 OK + code: 200 + duration: 288.631624ms diff --git a/example/fixtures/iana-reserved-domains.yaml b/example/fixtures/iana-reserved-domains.yaml index 379b197..8d0f9fa 100644 --- a/example/fixtures/iana-reserved-domains.yaml +++ b/example/fixtures/iana-reserved-domains.yaml @@ -1,156 +1,42 @@ --- version: 1 interactions: -- request: - body: "" - form: {} - headers: {} - url: https://www.iana.org/domains/reserved - method: GET - response: - body: "\n\n\n\tIANA — IANA-managed Reserved - Domains\n\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\n\t\n\n\n\n\n\t\n\t
\n\t\t
\n\t\t\t
\n\t\t\t\t\"Homepage\"/\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n\t\n\t
\n\t\n\n\t\t\t
\n\n\n\t

IANA-managed Reserved - Domains

\n\n\t

Certain domains are set aside, and nominally registered - to “IANA”, for specific\n\t\tpolicy or technical purposes.

\n\n\t

Example - domains

\n\t\n\t

As described in RFC 2606 - and RFC 6761,\n\ta number of domains such as example.com and example.org\n\tare - maintained for documentation purposes. These domains may be used as illustrative\n\texamples - in documents without prior coordination with us. They are \n\tnot available - for registration or transfer.

\n\n\t

Test IDN top-level domains

\n\n\t - \

These domains were temporarily delegated by IANA for the IDN - Evaluation being conducted by ICANN.

\n\n\t\t
\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\t
DomainDomain - (A-label)LanguageScript
إختبارXN--KGBECHTVArabicArabic
آزمایشیXN--HGBK6AJ7F53BBAPersianArabic
测试XN--0ZWM56DChineseHan - (Simplified variant)
測試XN--G6W251DChineseHan - (Traditional variant)
испытаниеXN--80AKHBYKNJ4FRussianCyrillic
परीक्षाXN--11B5BS3A9AJ6GHindiDevanagari - (Nagari)
δοκιμήXN--JXALPDLPGreek, - Modern (1453-)Greek
테스트XN--9T4B11YI5AKoreanHangul - (Hangŭl, Hangeul)
טעסטXN--DEBA0ADYiddishHebrew
テストXN--ZCKZAHJapaneseKatakana
பரிட்சைXN--HLCJ6AYA9ESC7ATamilTamil
\n\t - \
\n\n\t

Policy-reserved domains

\n\t\n\t

We act as both - the registrant and registrar for a select number of domains\n\t\twhich have - been reserved under policy grounds. These exclusions are\n\t\ttypically indicated - in either technical standards (RFC documents),\n\t\tor contractual - limitations.

\n\t\t\n\t\t

Domains which are described as registered - to IANA or ICANN on policy\n\t\tgrounds are not available for registration or - transfer, with the exception\n\t\tof country-name.info - domains. These domains are available for release\n\t\tby the ICANN Governmental - Advisory Committee Secretariat.

\n\n

Other Special-Use Domains

\n\n - \

There is additionally a Special-Use - Domain Names registry documenting special-use domains designated by technical - standards. For further information, see Special-Use - Domain Names (RFC 6761).

\n\t\n\n\t\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t

Domain Names

\n\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\n\t
\n\n\t\n\t\n\t\n\n\n\t\n\n\n\n" - headers: - Age: - - "2535" - Cache-Control: - - public, max-age=21603 - Content-Security-Policy: - - upgrade-insecure-requests; default-src 'self' https://*.iana.org; script-src - 'self' 'unsafe-inline' 'unsafe-eval' https://www.google.com https://cse.google.com - https://clients1.google.com; style-src 'self' 'unsafe-inline' - https://www.google.com; child-src 'self' https://www.youtube.com - https://clients1.google.com https://cse.google.com; img-src - 'self' https://data.iana.org https://www.iana.org https://www.google.com https://www.googleapis.com - https://clients1.google.com https://*.gstatic.com; - Content-Type: - - text/html; charset=UTF-8 - Date: - - Fri, 11 Jun 2021 08:36:52 GMT - Expires: - - Fri, 11 Jun 2021 10:17:26 GMT - Last-Modified: - - Thu, 21 May 2020 22:41:39 GMT - Referrer-Policy: - - origin-when-cross-origin - Server: - - Apache - Strict-Transport-Security: - - max-age=48211200; preload - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: 1.110414325s + - request: + body: "" + form: {} + headers: {} + url: https://www.iana.org/domains/reserved + method: GET + response: + body: "\n\n\n\tIANA-managed Reserved Domains\n\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\n\t\n\n\n\n\n
\n
\n
\n \"Homepage\"/\n
\n
\n \n
\n
\n
\n\n
\n\n\n
\n\n
\n \n\n\t

IANA-managed Reserved Domains

\n\n\t

Certain domains are set aside, and nominally registered to “IANA”, for specific\n\t\tpolicy or technical purposes.

\n\n\t

Example domains

\n\t\n\t

As described in RFC 2606 and RFC 6761,\n\ta number of domains such as example.com and example.org\n\tare maintained for documentation purposes. These domains may be used as illustrative\n\texamples in documents without prior coordination with us. They are \n\tnot available for registration or transfer.

\n\n\t

Test IDN top-level domains

\n\n\t

These domains were temporarily delegated by IANA for the IDN Evaluation being conducted by ICANN.

\n\n\t\t
\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\t
DomainDomain (A-label)LanguageScript
إختبارXN--KGBECHTVArabicArabic
آزمایشیXN--HGBK6AJ7F53BBAPersianArabic
测试XN--0ZWM56DChineseHan (Simplified variant)
測試XN--G6W251DChineseHan (Traditional variant)
испытаниеXN--80AKHBYKNJ4FRussianCyrillic
परीक्षाXN--11B5BS3A9AJ6GHindiDevanagari (Nagari)
δοκιμήXN--JXALPDLPGreek, Modern (1453-)Greek
테스트XN--9T4B11YI5AKoreanHangul (Hangŭl, Hangeul)
טעסטXN--DEBA0ADYiddishHebrew
テストXN--ZCKZAHJapaneseKatakana
பரிட்சைXN--HLCJ6AYA9ESC7ATamilTamil
\n\t
\n\n\t

Policy-reserved domains

\n\t\n\t

We act as both the registrant and registrar for a select number of domains\n\t\twhich have been reserved under policy grounds. These exclusions are\n\t\ttypically indicated in either technical standards (RFC documents),\n\t\tor contractual limitations.

\n\t\t\n\t\t

Domains which are described as registered to IANA or ICANN on policy\n\t\tgrounds are not available for registration or transfer, with the exception\n\t\tof country-name.info domains. These domains are available for release\n\t\tby the ICANN Governmental Advisory Committee Secretariat.

\n\n

Other Special-Use Domains

\n\n

There is additionally a Special-Use Domain Names registry documenting special-use domains designated by technical standards. For further information, see Special-Use Domain Names (RFC 6761).

\n\t\n\n
\n\n \n\n
\n\n\n
\n\n\n\n\n\n\n\n\n\n\n" + headers: + Age: + - "892" + Cache-Control: + - public, max-age=21603 + Content-Security-Policy: + - upgrade-insecure-requests; default-src 'self' https://*.iana.org; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.google.com https://cse.google.com https://clients1.google.com; style-src 'self' 'unsafe-inline' https://www.google.com; child-src 'self' https://www.youtube.com https://clients1.google.com https://cse.google.com https://www.google.com/; img-src 'self' https://data.iana.org https://www.iana.org https://www.google.com https://www.googleapis.com https://clients1.google.com https://*.gstatic.com; + Content-Type: + - text/html; charset=UTF-8 + Date: + - Mon, 15 Aug 2022 15:06:30 GMT + Expires: + - Mon, 15 Aug 2022 17:06:26 GMT + Last-Modified: + - Sun, 18 Jul 2021 22:53:53 GMT + Referrer-Policy: + - same-origin + Server: + - Apache + Strict-Transport-Security: + - max-age=48211200; preload + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + - nosniff + X-Frame-Options: + - DENY + status: 200 OK + code: 200 + duration: 601.931506ms