Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/projectdiscovery/rawhttp
Raw HTTP client in Go for complete request control and customization.
https://github.com/projectdiscovery/rawhttp
go golang httpclient lib rawhttp
Last synced: about 11 hours ago
JSON representation
Raw HTTP client in Go for complete request control and customization.
- Host: GitHub
- URL: https://github.com/projectdiscovery/rawhttp
- Owner: projectdiscovery
- License: mit
- Created: 2020-08-23T20:51:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-19T00:15:18.000Z (6 days ago)
- Last Synced: 2025-01-19T16:32:02.543Z (6 days ago)
- Topics: go, golang, httpclient, lib, rawhttp
- Language: Go
- Homepage: https://projectdiscovery.io
- Size: 8.69 MB
- Stars: 150
- Watchers: 16
- Forks: 23
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# rawhttp
[![License](https://img.shields.io/github/license/projectdiscovery/rawhttp)](LICENSE.md)
![Go version](https://img.shields.io/github/go-mod/go-version/projectdiscovery/rawhttp?filename=go.mod)
[![Release](https://img.shields.io/github/release/projectdiscovery/rawhttp)](https://github.com/projectdiscovery/rawhttp/releases/)
[![Checks](https://github.com/projectdiscovery/rawhttp/actions/workflows/build_test.yaml/badge.svg)](https://github.com/projectdiscovery/rawhttp/actions/workflows/build_test.yaml)
[![GoDoc](https://img.shields.io/badge/go-reference-blue)](https://pkg.go.dev/github.com/projectdiscovery/rawhttp)rawhttp is a Go package for making HTTP requests in a raw way.
- Forked and adapted from [https://github.com/gorilla/http](https://github.com/gorilla/http) and [https://github.com/valyala/fasthttp](https://github.com/valyala/fasthttp)
- The original idea is inspired by [@tomnomnom/rawhttp](https://github.com/tomnomnom/rawhttp) work# Library Usage
A simple example to get started with rawhttp is available at [examples](./example/simple/main.go). For documentation, please refer [godoc](https://pkg.go.dev/github.com/projectdiscovery/rawhttp)
## Note
rawhttp internally uses [fastdialer](https://github.com/projectdiscovery/fastdialer) to dial connections and fastdialer has a disk cache for DNS lookups. While using rawhttp `.Close()` method should be called at end of the program to remove temporary files created by fastdialer.
# License
rawhttp is distributed under MIT License