raw

package
v3.3.6-202411292143 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 13 Imported by: 0

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) ApplyAuthStrategy

func (r *Request) ApplyAuthStrategy(strategy authx.AuthStrategy)

ApplyAuthStrategy applies the auth strategy to the request

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