javaWeb: Servlet from scratch

Servlet 1. The essence of Servlet Servlet is essentially a java interface. By implementing the servlet interface, the custom servlet class can accept the data submitted by the client, respond to the client's request and output information to the client. 2. Function Read explicit data sent by the client (browser). This includes HTML forms o ...

Posted by storyteller on Fri, 19 Nov 2021 07:30:21 -0800

JSP technology: JSP overview, JSP basic syntax, JSP implicit object, JSP instruction, JSP action element, making two pages through JSP

Chapter 6: JSP technology: JSP overview, JSP basic syntax, JSP implicit object, JSP instruction, JSP action element, making two pages through JSP 1.JSP overview: 1.1 what is jsp: its full English name is java server pages, java server page. It is a dynamic web page development technology based on servlet specification. Java Server Page: you ca ...

Posted by Sondar on Tue, 16 Nov 2021 19:06:43 -0800

Chapter 4 request and response

Browser access Servlet process: HttpServletResponse object: It inherits from the ServletResponse interface and is specially used to encapsulate HTTP response messages. It defines the method of sending response status code, response message header and response message body to the client. Methods related to sending status codes include: 1. set ...

Posted by freynolds on Tue, 16 Nov 2021 01:11:34 -0800

Session Technology (Cookie vs. session)

1, Basic concepts Session: a session contains multiple requests and responses One session: the browser sends a request to the server resource for the first time, and the session is established until one party disconnects (the browser or client is closed) Function: share data between multiple requests within a session Method: Clien ...

Posted by jmdavis on Thu, 11 Nov 2021 16:05:44 -0800

Servlet&HTTP&Request Notes

Servlet&HTTP&Request Notes 1. Architecture of Servlet Servlet - Interface GenericServlet - Abstract Class HttpServlet - Abstract Class GenericServlet: Default empty implementation of the rest of the Servlet interface, using only the service() method as an abstraction When defining a Servlet class in the future, you can inherit t ...

Posted by selliott on Thu, 11 Nov 2021 08:13:56 -0800

How to implement efficient HTTP server with Netty

1 Overview HTTP is based on request / response mode: the client sends an HTTP request to the server, and then the server will return an HTTP response. Netty provides a variety of encoders and decoders to simplify the use of this protocol. An HTTP request / response may consist of multiple data parts. FullHttpRequest and FullHttpResponse messag ...

Posted by JustGotAQuestion on Wed, 03 Nov 2021 02:50:59 -0700

Network loading framework OkHttp

1. What is OkHttp github address: https://square.github.io/okhttp/ An open source project for processing network requests contributed by Square is the most widely used network framework for Android. Starting with Android 4.4 The underlying implementation of HttpURLConnection adopts OkHttp. 1. Support HTTP/2 and allow all requests to the ...

Posted by dprichard on Sat, 30 Oct 2021 12:08:34 -0700

Life cycle of HTTP request in Go service

Go language is a common and very suitable tool for writing HTTP services. This blog post discusses the routing of a typical HTTP request through a go service, involving routing, middleware and related issues such as concurrency. In order to have specific code for reference, let's start with this simple service code (from   Go by Example: ...

Posted by rajavel on Wed, 27 Oct 2021 19:02:34 -0700

The Minio Java framework for object storage spring cloud encapsulates the Minio SDK as an http interface

preface Due to the needs of the project, binary files such as audio and images need to be stored. These files cannot be stored in the database. HBase has been used for audio storage before. However, HBase's api is too complex to use There is also fastdfs for file storage, but the installation and configuration is very complex. Later, I found ...

Posted by Canadian on Sun, 24 Oct 2021 13:04:21 -0700

Build a live broadcast server nginx + rtmp on Mac

Introduction to live broadcasting technology The live broadcasting technology covers a wide range. Now, it is widely known that the live broadcasting technology will be used in personal live broadcasting of video websites, mobile live broadcasting, security camera monitoring, etc. Introduce various technical links in the live broadcast proc ...

Posted by DedoMraz on Sat, 23 Oct 2021 20:49:13 -0700