Skip to main content

tweak blog: mock APIs, debug HTTP and test frontends

Guides on mocking API responses, editing HTTP requests and headers, testing error states and debugging the network in the browser, from the tweak team.

How to pin extensions on Chrome for easy access

· One min read
Daniel Caldas
Co-founder

It's possible to pin a Chrome extension in the Chrome browser simply following the steps:

  1. Open the Chrome browser.
  2. Click on the "puzzle piece" icon in the top right corner of the browser.
  3. Locate the extension you want to pin.
  4. Click on the "pin" icon next to the extension you want to pin.

Below an imagine and a short clip to illustrate the steps.

tweak wrapped 2024: A Year of Growth

· 2 min read
Daniel Caldas
Co-founder

Closing on 2024, we’re thrilled to share the milestones and achievements that made this year unforgettable for Tweak Extension. With +65% more active users and more than 48M requests intercepted! Here’s a look at some 2024 numbers:

What Is a HAR File? Read, Share and Replay One

· 8 min read
Daniel Caldas
Co-founder

A HAR file (HTTP Archive, extension .har) is a recording of everything a page asked the network for: every request, its headers and body, every response, and how long each one took. It is plain JSON, every browser can export one, and it is the most useful attachment a "it doesn't work for me" bug report can carry.

This guide covers what is inside one, how to export it, how to read it, what to remove before you share it, and how to replay it so the page gets the recorded responses again.

Override Query Parameters with tweak

· 3 min read
Daniel Caldas
Co-founder

It's really hard to express the power of tweak just through our documentation. Some use cases fall through the cracks. We got some recent feedback on users searching for a way to modify URL query parameters and not being able to find it in tweak. This short "how to" article explains how you can manipulate the URL and its query parameters with tweak in just 3 simple steps.

Demystifying HTTP Status Codes: A Fun Guide

· 6 min read
Daniel Caldas
Co-founder

HTTP status codes may seem like a bunch of cryptic numbers, but they hold the key to unlocking the mysteries of the web. Whether you're a developer, a curious user, or just someone who stumbled upon this article, get ready to embark on an adventure to uncover the hidden meanings behind those three-digit codes.

From playful successes to mysterious redirects, and from sassy client errors to menacing server mishaps, let's dive into the fun and fascinating world of HTTP status codes!

Common HTTP Headers Every Developer Should Know

· 10 min read
Daniel Caldas
Co-founder

HTTP headers are the name and value pairs that travel in front of every request and response: Content-Type: application/json, Authorization: Bearer …, Cache-Control: no-store. They say what the body is, who is asking, what they may see and how long the answer may be kept. This is a reference to the headers you meet every day, what each one does, and how to see and change them when you test.

Override Response Headers in Chrome DevTools

· 5 min read
Daniel Caldas
Co-founder

Modern browsers have advanced development toolkits allowing HTTP request inspection in detail. With the recent Chrome 111 release users are now able to override response headers directly in the network panel. This means tools like browser extension are not needed to accomplish simple use cases. This article is a step-by-step how-to for that DevTools override: how to add or edit a response header from the Network panel, and where the feature stops.

Boost Your Productivity with Keyboard Shortcuts

· 3 min read
Daniel Caldas
Co-founder

Keyboard shortcuts are an essential tool for web developers, as they can help speed up common tasks and improve efficiency in the development process. In modern browsers such as Google Chrome and Mozilla Firefox, keyboard shortcuts can be especially helpful for debugging, as they allow developers to quickly access and navigate various development tools without needing to use their mouse or trackpad. We're also looking into why you should give a damn about shortcuts.