raw

package
v3.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Overview

Package raw provides raw http request parsing abilities for nuclei.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	FullURL        string
	Method         string
	Path           string
	Data           string
	Headers        map[string]string
	UnsafeHeaders  client.Headers
	UnsafeRawBytes []byte
}

Request defines a basic HTTP raw request

func Parse

func Parse(request string, inputURL *urlutil.URL, unsafe, disablePathAutomerge bool) (*Request, error)

Parse parses the raw request as supplied by the user

func ParseRawRequest

func ParseRawRequest(request string, unsafe bool) (*Request, error)

ParseRawRequest parses the raw request as supplied by the user this function should only be used for self-contained requests

func (*Request) TryFillCustomHeaders

func (r *Request) TryFillCustomHeaders(headers []string) error

TryFillCustomHeaders after the Host header

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL