📄️ Getting Started
GoFrame framework provides a powerful WebServer, implemented by the ghttp module, covering features such as routing, session management, and caching. It supports multiple port listening, domain binding, multi-instance operation, offering easy configuration management and server graceful restart capabilities, providing modularity and flexibility support for developers and reliable HTTP and HTTPS services for users.
🗃️ Router 🔥
3 items
🗃️ API Document
2 items
🗃️ Request 🔥
8 items
🗃️ Response
7 items
🗃️ Configuration
3 items
📄️ Cookie
Use Cookie for session management in the GoFrame framework. Developers can easily get, set, and delete cookies through the ghttp.Request object. It also discusses obtaining and setting SessionId, handling cookie expiration, and simple methods to inherit and use session objects in controllers. These features provide powerful tools for web developers to manage user sessions, ensuring the flexibility and adaptability of web applications.
🗃️ Session
5 items
📄️ Exception Handling
The strategy for handling HTTP request exceptions in the GoFrame framework. When an exception occurs during a request, GoFrame automatically captures the panic to prevent process crashes and logs it to a file. Developers can customize middleware for exception capture and handling, obtaining detailed exception stack information to better pinpoint issues. This article provides multiple code examples to help readers understand the correct usage of exception handling.
🗃️ HTTPClient
11 items
🗃️ Pagination
5 items
🗃️ Advanced Features
12 items
📄️ Performance
Performance testing of the HTTP Server component in the GoFrame framework. With its modular and low-coupling design philosophy, the GoFrame framework provides developers with a powerful basic development environment. This article presents neutral third-party performance test reports to demonstrate the actual performance of the HTTP Server, helping developers better understand and assess the capabilities and advantages of the GoFrame framework.
📄️ FAQ
Answer common questions about frequent context cancel errors on the server side when using the GoFrame framework. This error is usually caused by the client actively canceling the request. The article introduces a way to handle this issue through custom middleware, allowing the server to ignore client cancellations and continue execution.