ctx_test.go — fiber Source File
Architecture documentation for ctx_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7b3d4933_5ae3_f84d_ff6d_0cb34e268026["ctx_test.go"] 3c539dc4_ce70_7be5_43dc_5058a965884a["bufio"] 7b3d4933_5ae3_f84d_ff6d_0cb34e268026 --> 3c539dc4_ce70_7be5_43dc_5058a965884a style 7b3d4933_5ae3_f84d_ff6d_0cb34e268026 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️
// 🤖 GitHub Repository: https://github.com/gofiber/fiber
// 📌 API Documentation: https://docs.gofiber.io
package fiber
import (
"bufio"
"bytes"
"compress/gzip"
"compress/zlib"
"context"
"crypto/tls"
"embed"
"encoding/hex"
"encoding/xml"
"errors"
"fmt"
"io"
"math"
"mime/multipart"
"net"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
"sync/atomic"
"testing"
"text/template"
"time"
"github.com/fxamacker/cbor/v2"
"github.com/gofiber/utils/v2"
"github.com/shamaton/msgpack/v3"
"github.com/stretchr/testify/require"
"github.com/valyala/bytebufferpool"
"github.com/valyala/fasthttp"
"github.com/gofiber/fiber/v3/internal/storage/memory"
)
const epsilon = 0.001
type testContextKey struct{}
type testNetAddr struct {
network string
address string
}
func (t testNetAddr) Network() string {
return t.network
}
func (t testNetAddr) String() string {
return t.address
}
// ... (8702 more lines)
Domain
Subdomains
Functions
- Benchmark_Ctx_Accepts()
- Benchmark_Ctx_AcceptsCharsets()
- Benchmark_Ctx_AcceptsEncodings()
- Benchmark_Ctx_AcceptsLanguages()
- Benchmark_Ctx_Append()
- Benchmark_Ctx_Attachment()
- Benchmark_Ctx_AutoFormat()
- Benchmark_Ctx_AutoFormat_HTML()
- Benchmark_Ctx_AutoFormat_JSON()
- Benchmark_Ctx_AutoFormat_MsgPack()
- Benchmark_Ctx_AutoFormat_XML()
- Benchmark_Ctx_BaseURL()
- Benchmark_Ctx_Body()
- Benchmark_Ctx_BodyRaw()
- Benchmark_Ctx_BodyRaw_Immutable()
- Benchmark_Ctx_BodyStreamWriter()
- Benchmark_Ctx_Body_Immutable()
- Benchmark_Ctx_Body_With_Compression()
- Benchmark_Ctx_Body_With_Compression_Immutable()
- Benchmark_Ctx_CBOR()
- Benchmark_Ctx_Cookie()
- Benchmark_Ctx_Format()
- Benchmark_Ctx_Fresh_LastModified()
- Benchmark_Ctx_Fresh_StaleEtag()
- Benchmark_Ctx_Fresh_WithNoCache()
- Benchmark_Ctx_GetReqHeaders()
- Benchmark_Ctx_GetRespHeaders()
- Benchmark_Ctx_Get_Location_From_Route()
- Benchmark_Ctx_Host()
- Benchmark_Ctx_Hostname()
- Benchmark_Ctx_IP()
- Benchmark_Ctx_IP_With_ProxyHeader()
- Benchmark_Ctx_IP_With_ProxyHeader_and_IP_Validation()
- Benchmark_Ctx_IPs()
- Benchmark_Ctx_IPs_With_IP_Validation()
- Benchmark_Ctx_IPs_v6()
- Benchmark_Ctx_IPs_v6_With_IP_Validation()
- Benchmark_Ctx_Is()
- Benchmark_Ctx_IsFromLocalhost()
- Benchmark_Ctx_IsProxyTrusted()
- Benchmark_Ctx_JSON()
- Benchmark_Ctx_JSONP()
- Benchmark_Ctx_JSON_Ctype()
- Benchmark_Ctx_Links()
- Benchmark_Ctx_MsgPack()
- Benchmark_Ctx_MultipartForm()
- Benchmark_Ctx_OverrideParam()
- Benchmark_Ctx_Params()
- Benchmark_Ctx_Protocol()
- Benchmark_Ctx_Queries()
- Benchmark_Ctx_Query()
- Benchmark_Ctx_Range()
- Benchmark_Ctx_RenderLocals()
- Benchmark_Ctx_RenderViewBind()
- Benchmark_Ctx_RenderWithLocalsAndViewBind()
- Benchmark_Ctx_Render_Engine()
- Benchmark_Ctx_Scheme()
- Benchmark_Ctx_Send()
- Benchmark_Ctx_SendFile()
- Benchmark_Ctx_SendString_B()
- Benchmark_Ctx_Set()
- Benchmark_Ctx_String()
- Benchmark_Ctx_Subdomains()
- Benchmark_Ctx_Type()
- Benchmark_Ctx_Type_Charset()
- Benchmark_Ctx_Vary()
- Benchmark_Ctx_Write()
- Benchmark_Ctx_Writef()
- Benchmark_Ctx_XHR()
- Benchmark_Ctx_XML()
- Context()
- Test_Ctx_AbandonSkipsReleaseCtx()
- Test_Ctx_Accepts()
- Test_Ctx_AcceptsCharsets()
- Test_Ctx_AcceptsCharsets_MultiHeader()
- Test_Ctx_AcceptsEncodings()
- Test_Ctx_AcceptsEncodings_MultiHeader()
- Test_Ctx_AcceptsHelpers()
- Test_Ctx_AcceptsLanguages()
- Test_Ctx_AcceptsLanguagesExtended()
- Test_Ctx_AcceptsLanguages_BasicFiltering()
- Test_Ctx_AcceptsLanguages_CaseInsensitive()
- Test_Ctx_AcceptsLanguages_MultiHeader()
- Test_Ctx_Accepts_EmptyAccept()
- Test_Ctx_Accepts_MultiHeader()
- Test_Ctx_Accepts_Wildcard()
- Test_Ctx_AccessAfterHandlerPanics()
- Test_Ctx_App()
- Test_Ctx_Append()
- Test_Ctx_Attachment()
- Test_Ctx_Attachment_SanitizesFilenameControls()
- Test_Ctx_AutoFormat()
- Test_Ctx_AutoFormat_Struct()
- Test_Ctx_BaseURL()
- Test_Ctx_Binders()
- Test_Ctx_Body()
- Test_Ctx_BodyRaw()
- Test_Ctx_BodyRaw_Immutable()
- Test_Ctx_BodyStreamWriter()
- Test_Ctx_Body_Immutable()
- Test_Ctx_Body_With_Compression()
- Test_Ctx_Body_With_Compression_Immutable()
- Test_Ctx_CBOR()
- Test_Ctx_Charset()
- Test_Ctx_ClearCookie()
- Test_Ctx_ClientHelloInfo()
- Test_Ctx_ContentTypeHelpers()
- Test_Ctx_Context()
- Test_Ctx_Context_AfterHandlerPanics()
- Test_Ctx_Context_Multiple_Requests()
- Test_Ctx_Cookie()
- Test_Ctx_Cookie_DefaultPath()
- Test_Ctx_Cookie_Invalid()
- Test_Ctx_Cookie_MaxAgeOnly()
- Test_Ctx_Cookie_PartitionedSecure()
- Test_Ctx_Cookie_SameSite_CaseInsensitive()
- Test_Ctx_Cookie_SameSite_None_Secure()
- Test_Ctx_Cookie_StrictPartitioned()
- Test_Ctx_Cookies()
- Test_Ctx_CustomCtx()
- Test_Ctx_CustomCtx_WithMiddleware()
- Test_Ctx_CustomCtx_and_Method()
- Test_Ctx_Deadline()
- Test_Ctx_Done()
- Test_Ctx_Download()
- Test_Ctx_Download_SanitizesFilenameControls()
- Test_Ctx_Drop()
- Test_Ctx_DropWithMiddleware()
- Test_Ctx_End()
- Test_Ctx_End_after_drop()
- Test_Ctx_End_after_timeout()
- Test_Ctx_End_with_drop_middleware()
- Test_Ctx_Err()
- Test_Ctx_ForceReleaseClearsAbandon()
- Test_Ctx_FormFile()
- Test_Ctx_FormValue()
- Test_Ctx_Format()
- Test_Ctx_Fresh()
- Test_Ctx_FullPath()
- Test_Ctx_FullPath_Group()
- Test_Ctx_FullPath_Middleware()
- Test_Ctx_Get()
- Test_Ctx_GetReqHeader()
- Test_Ctx_GetReqHeaders()
- Test_Ctx_GetRespHeaders()
- Test_Ctx_Get_Location_From_Route_name()
- Test_Ctx_Get_Location_From_Route_name_Optional_greedy()
- Test_Ctx_Get_Location_From_Route_name_Optional_greedy_one_param()
- Test_Ctx_HasBody()
- Test_Ctx_HeaderHelpers()
- Test_Ctx_Host()
- Test_Ctx_Host_TrustedProxy()
- Test_Ctx_Host_TrustedProxyRange()
- Test_Ctx_Host_UntrustedProxy()
- Test_Ctx_Host_UntrustedProxyRange()
- Test_Ctx_Hostname()
- Test_Ctx_Hostname_TrustedProxy()
- Test_Ctx_Hostname_TrustedProxyRange()
- Test_Ctx_Hostname_TrustedProxy_Multiple()
- Test_Ctx_Hostname_UntrustedProxyRange()
- Test_Ctx_IP()
- Test_Ctx_IP_ProxyHeader()
- Test_Ctx_IP_ProxyHeader_With_IP_Validation()
- Test_Ctx_IP_TrustedProxy()
- Test_Ctx_IP_UntrustedProxy()
- Test_Ctx_IPs()
- Test_Ctx_IPs_With_IP_Validation()
- Test_Ctx_InvalidMethod()
- Test_Ctx_Is()
- Test_Ctx_IsFromLocal_RemoteAddr()
- Test_Ctx_IsFromLocal_X_Forwarded()
- Test_Ctx_IsMiddleware()
- Test_Ctx_IsPreflight()
- Test_Ctx_IsProxyTrusted()
- Test_Ctx_IsWebSocket()
- Test_Ctx_JSON()
- Test_Ctx_JSONP()
- Test_Ctx_Links()
- Test_Ctx_Locals()
- Test_Ctx_Locals_Generic()
- Test_Ctx_Locals_GenericCustomStruct()
- Test_Ctx_Location()
- Test_Ctx_Matched_AfterNext()
- Test_Ctx_Matched_RouteError()
- Test_Ctx_Method()
- Test_Ctx_MsgPack()
- Test_Ctx_MultipartForm()
- Test_Ctx_Next()
- Test_Ctx_Next_Error()
- Test_Ctx_OriginalURL()
- Test_Ctx_OverrideParam()
- Test_Ctx_Params()
- Test_Ctx_Params_Case_Sensitive()
- Test_Ctx_Params_ErrorHandler_Panic_Issue_2832()
- Test_Ctx_Params_Immutable()
- Test_Ctx_Path()
- Test_Ctx_Port()
- Test_Ctx_PortInHandler()
- Test_Ctx_Port_RemoteAddrVariants()
- Test_Ctx_Protocol()
- Test_Ctx_Queries()
- Test_Ctx_Query()
- Test_Ctx_Range()
- Test_Ctx_Range_LargeFile()
- Test_Ctx_Range_Overflow()
- Test_Ctx_Range_SuffixNormalization()
- Test_Ctx_Range_TooManyRanges()
- Test_Ctx_Range_Unsatisfiable()
- Test_Ctx_Render()
- Test_Ctx_RenderWithLocals()
- Test_Ctx_RenderWithLocalsAndBinding()
- Test_Ctx_RenderWithOverwrittenViewBind()
- Test_Ctx_RenderWithViewBind()
- Test_Ctx_RenderWithViewBindLocals()
- Test_Ctx_RenderWithoutLocals()
- Test_Ctx_Render_Engine()
- Test_Ctx_Render_Engine_Error()
- Test_Ctx_Render_Engine_With_View_Layout()
- Test_Ctx_Render_Go_Template()
- Test_Ctx_RequestCtx()
- Test_Ctx_Request_Response_AfterRelease()
- Test_Ctx_RestartRouting()
- Test_Ctx_RestartRoutingWithChangedPath()
- Test_Ctx_RestartRoutingWithChangedPathAndCatchAll()
- Test_Ctx_Route()
- Test_Ctx_RouteNormalized()
- Test_Ctx_SaveFile()
- Test_Ctx_SaveFileToStorage()
- Test_Ctx_SaveFileToStorage_BufferNotReused()
- Test_Ctx_SaveFileToStorage_ContextPropagation()
- Test_Ctx_SaveFileToStorage_LargeUpload()
- Test_Ctx_SaveFileToStorage_LimitExceeded()
- Test_Ctx_SaveFileToStorage_LimitExceededUnknownSize()
- Test_Ctx_Scheme()
- Test_Ctx_Scheme_HeaderNormalization()
- Test_Ctx_Scheme_TrustedProxy()
- Test_Ctx_Scheme_TrustedProxyRange()
- Test_Ctx_Scheme_UnTrustedProxy()
- Test_Ctx_Scheme_UntrustedProxyRange()
- Test_Ctx_Secure()
- Test_Ctx_Send()
- Test_Ctx_SendEarlyHints()
- Test_Ctx_SendFile()
- Test_Ctx_SendFile_404()
- Test_Ctx_SendFile_Compress_CheckCompressed()
- Test_Ctx_SendFile_ContentType()
- Test_Ctx_SendFile_Download()
- Test_Ctx_SendFile_EmbedFS()
- Test_Ctx_SendFile_Immutable()
- Test_Ctx_SendFile_MaxAge()
- Test_Ctx_SendFile_Multiple()
- Test_Ctx_SendFile_RestoreOriginalURL()
- Test_Ctx_SendStatus()
- Test_Ctx_SendStatusNoBodyResponses()
- Test_Ctx_SendStream()
- Test_Ctx_SendStreamWriter()
- Test_Ctx_SendStreamWriter_Interrupted()
- Test_Ctx_SendString()
- Test_Ctx_Set()
- Test_Ctx_SetContext()
- Test_Ctx_Set_SanitizeHeaderValue()
- Test_Ctx_Set_Splitter()
- Test_Ctx_Stale()
- Test_Ctx_Status()
- Test_Ctx_String()
- Test_Ctx_Subdomains()
- Test_Ctx_Type()
- Test_Ctx_TypedParsingDefaults()
- Test_Ctx_Value()
- Test_Ctx_Value_AfterRelease()
- Test_Ctx_Value_InGoroutine()
- Test_Ctx_Vary()
- Test_Ctx_Write()
- Test_Ctx_WriteString()
- Test_Ctx_Writef()
- Test_Ctx_XHR()
- Test_Ctx_XML()
- Test_Ctx_extractIPsFromHeader()
- Test_Ctx_extractIPsFromHeader_EnableValidateIp()
- Test_SendFile_ByteRange()
- Test_SendFile_withRoutes()
- Test_Static_Compress()
- Test_shouldIncludeCharset()
- createMultipartFileHeader()
Classes
Types
Dependencies
- bufio
Source
Frequently Asked Questions
What does ctx_test.go do?
ctx_test.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Routing subdomain.
What functions are defined in ctx_test.go?
ctx_test.go defines 284 function(s): Benchmark_Ctx_Accepts, Benchmark_Ctx_AcceptsCharsets, Benchmark_Ctx_AcceptsEncodings, Benchmark_Ctx_AcceptsLanguages, Benchmark_Ctx_Append, Benchmark_Ctx_Attachment, Benchmark_Ctx_AutoFormat, Benchmark_Ctx_AutoFormat_HTML, Benchmark_Ctx_AutoFormat_JSON, Benchmark_Ctx_AutoFormat_MsgPack, and 274 more.
What does ctx_test.go depend on?
ctx_test.go imports 1 module(s): bufio.
Where is ctx_test.go in the architecture?
ctx_test.go is located at ctx_test.go (domain: FiberCore, subdomain: Routing).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free