nc example.com 80 nc (netcat) 명령어를 터미널에 입력하면 간단하게 TCP 연결을 생성할 수 있다. GET / HTTP/1.0Host: example.com 그 다음 GET 요청을 작성한 뒤 엔터를 누르면 response를 받을 수 있다. 터미널에서 명령어를 통해 간단하게 TCP 연결 및 HTTP 요청을 수행했다! HTTP 요청과 응답을 하나씩 뜯어보면 request header 분석GET / HTTP/1.0GET: HTTP method를 의미/: 요청 urlHTTP/1.0: HTTP 버전 Host: example.com: 요청 도메인 이름 response header 분석HTTP/1.0 200 OKHTTP/1.0: HTTP 버전200 OK: 응답 상태 코드 그 외 key:va..
deprecated된 dataIdFromObject를 keyFields로 변경하면서 생긴 이슈 기록 Apollo Graphql은 Object 타입을 캐시할 때 기본 식별자로 id 필드를 사용한다. Object에 id필드가 없거나 다른 필드를 식별자로 사용하고 싶은 경우 커스텀 할 수 있다. Configuring the Apollo Client cachekeyFields: ["title", "author", ["name"]],www.apollographql.com 그 때 사용하는 것이 dataIdFromObject 함수 또는 KeyField이다. 공식문서에서는 dataIdFromObject의 세 가지 결점을 이유로 KeyFields 사용을 권장한다. dataIdFromObject의 세 가지 결점 1) I..
Presigned Url A Presigned URL is a URL that provides temporary, secure access to a specific resource in cloud storage (like Amazon S3) without needing the client to have full access credentials. It is commonly used in scenarios where a client needs to upload or download files directly to/from cloud storage, while the server still controls access. How Presigned URLs Work When a presigned URL is ..
React Graphql Masterclass32. Data Resolver - Overriding A Field GraphQL 서버는 graphql 요청시 scalar 타입이면 값을 그대로 response하고 object 타입이면 object 타입의 각 필드마다 관련된 매핑 함수가 있는지 확인한다. 예를 들어 아래와 같은 데이터 구조에서type Query { sayHello: String customers: [Customer]!}type Customer { id: ID name: String age: Int city: String}public class Customer { private Integer id; private String name; priv..
- 20200512
- 20200424
- 20200420
- 20200423
- chapter7
- 20200319
- 20200622
- 20200427
- 20200624
- 20200406
- likelion
- 20200502
- 20200425
- 20200428
- chapter8
- 20200415
- 백준
- 20200421
- 20200317
- 20200403
- 20200429
- 20200804
- 20200330
- 20200417
- 20201204
- 20200510
- 20200503
- 20200504
- 생활코딩리눅스
- 20200413
- Total
- Today
- Yesterday