request.go — fiber Source File
Architecture documentation for request.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 57f8b776_0c63_5c88_3581_d70765402a0c["request.go"] c0b86961_3ef1_0168_52fc_98627566ed27["bytes"] 57f8b776_0c63_5c88_3581_d70765402a0c --> c0b86961_3ef1_0168_52fc_98627566ed27 style 57f8b776_0c63_5c88_3581_d70765402a0c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
package client
import (
"bytes"
"context"
"errors"
"io"
"iter"
"maps"
"path/filepath"
"reflect"
"slices"
"sort"
"strconv"
"sync"
"time"
"github.com/gofiber/fiber/v3"
"github.com/gofiber/utils/v2"
"github.com/valyala/fasthttp"
)
// WithStruct is implemented by types that allow data to be stored from a struct via reflection.
type WithStruct interface {
Add(name, obj string)
Del(name string)
}
// bodyType defines the type of request body.
type bodyType int
// Enumeration of request body types.
const (
noBody bodyType = iota
jsonBody
xmlBody
formBody
filesBody
rawBody
cborBody
)
var ErrClientNil = errors.New("client cannot be nil")
// Request contains all data related to an HTTP request.
type Request struct {
ctx context.Context //nolint:containedctx // Context is needed to be stored in the request.
body any
header Header
params QueryParam
cookies Cookie
path PathParam
client *Client
formData FormData
RawRequest *fasthttp.Request
url string
// ... (1063 more lines)
Domain
Subdomains
Functions
Types
Dependencies
- bytes
Source
Frequently Asked Questions
What does request.go do?
request.go is a source file in the fiber codebase, written in go. It belongs to the FiberClient domain, Hooks subdomain.
What functions are defined in request.go?
request.go defines 10 function(s): AcquireFile, AcquireRequest, ReleaseFile, ReleaseRequest, SetFileFieldName, SetFileName, SetFilePath, SetFileReader, SetValWithStruct, f.
What does request.go depend on?
request.go imports 1 module(s): bytes.
Where is request.go in the architecture?
request.go is located at client/request.go (domain: FiberClient, subdomain: Hooks, directory: client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free